diff options
| author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2008-06-04 10:46:20 +1000 |
|---|---|---|
| committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2008-06-04 10:46:20 +1000 |
| commit | 1c88f422d54798d22d1f933d04e82dc97cfdfdaf (patch) | |
| tree | 59e9031ce9ea2431d4d9e93254eb672480a92083 /ctdb/include | |
| parent | a594ac1e917a68e7514863d8976af2094fcfa701 (diff) | |
add a parameter for the tdb-flags to the client function
ctdb_attach() so that we can pass TDB_NOSYNC when we attach to
a persistent database and want fast unsafe writes instead of
slow but safe tdb_transaction writes.
enhance the ctdb_persistent test suite to test both safe and unsafe writes
(This used to be ctdb commit 4948574f5a290434f3edd0c052cf13f3645deec4)
Diffstat (limited to 'ctdb/include')
| -rw-r--r-- | ctdb/include/ctdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index 95d3f2f392..ecbe9576d6 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -185,7 +185,7 @@ int ctdb_start_daemon(struct ctdb_context *ctdb, bool do_fork); /* attach to a ctdb database */ -struct ctdb_db_context *ctdb_attach(struct ctdb_context *ctdb, const char *name, bool persistent); +struct ctdb_db_context *ctdb_attach(struct ctdb_context *ctdb, const char *name, bool persistent, uint32_t tdb_flags); /* find an attached ctdb_db handle given a name |
