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@gmail.com>
Mon, 31 Mar 2014 02:41:51 +0000 (13:41 +1100)
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>
(Imported from commit 30f7d7db8c0bf370464238133f75b5e0bdce37c6)

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));