summaryrefslogtreecommitdiff
path: root/ctdb/client
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2015-11-20 16:22:41 +1100
committerMartin Schwenke <martins@samba.org>2016-02-24 08:44:38 +0100
commit64447653ed793f9935b7495a7d0e594983288bdd (patch)
tree85d6257c5e5f82dc1f26b93e720d395bb9e3bf2a /ctdb/client
parentfbd3fd343bd0d1c6c03f8ae82ae79ad5580af421 (diff)
downloadsamba-64447653ed793f9935b7495a7d0e594983288bdd.tar.gz
ctdb-client: Keep trying to migrate till record lock is obtained
If a record is not on a local node, then it is migrated from remote node. However, before the client can get a lock on the record, it's possible for the record to get migrated away. In that case, repeat migration. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/client')
-rw-r--r--ctdb/client/client_db.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/client/client_db.c b/ctdb/client/client_db.c
index 37e2ce51ec8..8012464f108 100644
--- a/ctdb/client/client_db.c
+++ b/ctdb/client/client_db.c
@@ -904,7 +904,9 @@ static void ctdb_fetch_lock_migrate_done(struct tevent_req *subreq)
ret = ctdb_fetch_lock_check(req);
if (ret != 0) {
- tevent_req_error(req, ret);
+ if (ret != EAGAIN) {
+ tevent_req_error(req, ret);
+ }
return;
}