ctdb-tests: Use ctdb_fetch_lock instead of ctdb_fetch_lock_readonly
authorAmitay Isaacs <amitay@gmail.com>
Thu, 27 Mar 2014 04:11:09 +0000 (15:11 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 28 Mar 2014 04:55:13 +0000 (05:55 +0100)
This will test that ctdb_fetch_lock correctly revokes readonly
delegations.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tests/src/ctdb_update_record.c

index 6eff1d04d97dbbb111f9a2d0197aa385ff2e95b8..78d983bccc32cc3bfe5376f5f8e27bf394b115b9 100644 (file)
@@ -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));