From 30f7d7db8c0bf370464238133f75b5e0bdce37c6 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Thu, 27 Mar 2014 15:11:09 +1100 Subject: [PATCH] ctdb-tests: Use ctdb_fetch_lock instead of ctdb_fetch_lock_readonly This will test that ctdb_fetch_lock correctly revokes readonly delegations. Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/tests/src/ctdb_update_record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/tests/src/ctdb_update_record.c b/ctdb/tests/src/ctdb_update_record.c index 6eff1d04d97..78d983bccc3 100644 --- a/ctdb/tests/src/ctdb_update_record.c +++ b/ctdb/tests/src/ctdb_update_record.c @@ -45,7 +45,7 @@ static void fetch_lock_once(struct ctdb_context *ctdb, struct event_context *ev, printf("Trying to fetch lock the record ...\n"); - h = ctdb_fetch_readonly_lock(ctdb_db, tmp_ctx, key, &data, false); + h = ctdb_fetch_lock(ctdb_db, tmp_ctx, key, &data); if (h == NULL) { printf("Failed to fetch record '%s' on node %d\n", (const char *)key.dptr, ctdb_get_pnn(ctdb)); -- 2.11.4.GIT