Browse Source

Add many test cases/work out more of the details of execute.

Brian Aker 14 years ago
parent
commit
474edbe609

+ 2 - 0
ChangeLog

@@ -1,5 +1,7 @@
   * Support for "drop function" 
 
+  * Fixed issue where server would not report on a bad unique value due to size
+
   * Forces do operations to complete no matter how the worker is designed.
 
 0.20 Fri Apr  8 09:25:15 PDT 2011

+ 1 - 4
Makefile.am

@@ -17,15 +17,12 @@ nobase_include_HEADERS =
 noinst_HEADERS =
 man_MANS =
 DISTCLEANFILES =
-EXTRA_DIST = config/top.h
+EXTRA_DIST =
 CLEANFILES =
 TESTS =
 
 GEARMAN_TMP = ${abs_top_builddir}/tests/var/tmp/
 
-CLEANFILES+= config/top.h
-
-
 include benchmark/include.am
 include bin/include.am
 include examples/include.am

+ 50 - 0
docs/do.rst

@@ -0,0 +1,50 @@
+======================== 
+Issuing a single request 
+========================
+
+
+--------
+SYNOPSIS
+--------
+
+#include <libgearman/gearman.h>
+
+.. c:function:: void *gearman_client_do(gearman_client_st *client, const char *function_name, const char *unique, const void *workload, size_t workload_size, size_t *result_size, gearman_return_t *ret_ptr) *client);
+
+.. c:function:: void *gearman_client_do_high(gearman_client_st *client, const char *function_name, const char *unique, const void *workload, size_t workload_size, size_t *result_size, gearman_return_t *ret_ptr) 
+
+.. c:function:: void *gearman_client_do_low(gearman_client_st *client, const char *function_name, const char *unique, const void *workload, size_t workload_size, size_t *result_size, gearman_return_t *ret_ptr);
+
+
+-----------
+DESCRIPTION
+-----------
+
+
+gearman_client_do() executes a single request to the gearmand server and waits for a reply.
+
+All previous tasks created with the gearman_client_st will be released once gearman_client_do() is executed.
+
+
+------
+RETURN
+------
+
+
+gearman_client_do() returns a pointer to a value that the caller must release. If ret_ptr is provided any errors that have occurred will be stored in it. Since a NULL/zero value is a valid value, you will always need to check ret_ptr if you are concerned with errors.
+
+
+----
+HOME
+----
+
+
+To find out more information please check:
+`https://launchpad.net/gearmand <https://launchpad.net/gearmand>`_
+
+
+--------
+SEE ALSO
+--------
+
+:manpage:`gearmand(8)` :manpage:`libgearman(3)` :manpage:`gearman_strerror(3)`

+ 1 - 0
docs/index.rst

@@ -48,6 +48,7 @@ Function Calls
    :maxdepth: 2
 
    libgearman
+   do
    gearman_client
    gearman_worker
    gearman_client_execute

+ 1 - 1
docs/man/gearadmin.1

@@ -1,4 +1,4 @@
-.TH "GEARADMIN" "1" "April 13, 2011" "0.20" "Gearmand"
+.TH "GEARADMIN" "1" "May 02, 2011" "0.20" "Gearmand"
 .SH NAME
 gearadmin \- Gearmand Documentation
 .

+ 1 - 1
docs/man/gearman.1

@@ -1,4 +1,4 @@
-.TH "GEARMAN" "1" "April 13, 2011" "0.20" "Gearmand"
+.TH "GEARMAN" "1" "May 02, 2011" "0.20" "Gearmand"
 .SH NAME
 gearman \- Gearmand Documentation
 .

+ 1 - 1
docs/man/gearman_bugreport.3

@@ -1,4 +1,4 @@
-.TH "GEARMAN_BUGREPORT" "3" "April 13, 2011" "0.20" "Gearmand"
+.TH "GEARMAN_BUGREPORT" "3" "May 02, 2011" "0.20" "Gearmand"
 .SH NAME
 gearman_bugreport \- Gearmand Documentation
 .

+ 1 - 1
docs/man/gearman_client_add_options.3

@@ -1,4 +1,4 @@
-.TH "GEARMAN_CLIENT_ADD_OPTIONS" "3" "April 13, 2011" "0.20" "Gearmand"
+.TH "GEARMAN_CLIENT_ADD_OPTIONS" "3" "May 02, 2011" "0.20" "Gearmand"
 .SH NAME
 gearman_client_add_options \- Gearmand Documentation
 .

+ 1 - 1
docs/man/gearman_client_add_server.3

@@ -1,4 +1,4 @@
-.TH "GEARMAN_CLIENT_ADD_SERVER" "3" "April 13, 2011" "0.20" "Gearmand"
+.TH "GEARMAN_CLIENT_ADD_SERVER" "3" "May 02, 2011" "0.20" "Gearmand"
 .SH NAME
 gearman_client_add_server \- Gearmand Documentation
 .

+ 1 - 1
docs/man/gearman_client_add_servers.3

@@ -1,4 +1,4 @@
-.TH "GEARMAN_CLIENT_ADD_SERVERS" "3" "April 13, 2011" "0.20" "Gearmand"
+.TH "GEARMAN_CLIENT_ADD_SERVERS" "3" "May 02, 2011" "0.20" "Gearmand"
 .SH NAME
 gearman_client_add_servers \- Gearmand Documentation
 .

Some files were not shown because too many files changed in this diff