Fix ProcessBackendResponse() so that it calls pool_unset_command_success()
authorTatsuo Ishii <ishii at sraoss.co.jp>
Wed, 20 Jul 2011 10:41:10 +0000 (10:41 +0000)
committerTatsuo Ishii <ishii at sraoss.co.jp>
Wed, 20 Jul 2011 10:41:10 +0000 (10:41 +0000)
rather than pool_set_command_success() when received Error Response.

pool_proto_modules.c

index ca8e6933b0d6884f6dda8947b4d607ef58887472..2f113571d19f6c853c5248eb1359e14bc29e25bb 100644 (file)
@@ -2142,7 +2142,7 @@ POOL_STATUS ProcessBackendResponse(POOL_CONNECTION *frontend,
 
                        case 'E':       /* ErrorResponse */
                                status = ErrorResponse3(frontend, backend);
-                               pool_set_command_success();
+                               pool_unset_command_success();
                                if (TSTATE(backend, MASTER_SLAVE ? PRIMARY_NODE_ID :
                                                   REAL_MASTER_NODE_ID) != 'I')
                                        pool_set_failed_transaction();