diff options
author | Amitay Isaacs <amitay@gmail.com> | 2017-03-02 15:39:29 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-06-29 10:34:26 +0200 |
commit | 94af277c489f0ad861c6923d91286f46f9e4d29b (patch) | |
tree | abc3184d45c6f3a173091730b76b3361265ef854 /ctdb/server/ctdb_call.c | |
parent | 2975de6ffbb412e241ed44d64dd549de76c1d03a (diff) | |
download | samba-94af277c489f0ad861c6923d91286f46f9e4d29b.tar.gz |
ctdb-daemon: Add accessors for CTDB_DB_FLAGS_PERSISTENT flag
This allows to differentiate between the two database models.
ctdb_db_persistent() - replicated and permanent
ctdb_db_volatile() - distributed and temporary
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/server/ctdb_call.c')
-rw-r--r-- | ctdb/server/ctdb_call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_call.c b/ctdb/server/ctdb_call.c index c6bff4954ca..320a13aceac 100644 --- a/ctdb/server/ctdb_call.c +++ b/ctdb/server/ctdb_call.c @@ -1974,7 +1974,7 @@ int ctdb_migration_init(struct ctdb_db_context *ctdb_db) struct tevent_timer *te; int ret; - if (ctdb_db->persistent) { + if (! ctdb_db_volatile(ctdb_db)) { return 0; } |