diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-17 14:45:59 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-03-17 14:56:45 +0100 |
commit | 3ff8a21ca32ee6f800a94ecf00e6020105ad19c9 (patch) | |
tree | 71ac1840dfa7aa9c9973f1b474291ef282df24b1 /source3 | |
parent | 170995493376e926b7b30791286598ad6b7af4a4 (diff) | |
download | samba-3ff8a21ca32ee6f800a94ecf00e6020105ad19c9.tar.gz samba-3ff8a21ca32ee6f800a94ecf00e6020105ad19c9.tar.bz2 samba-3ff8a21ca32ee6f800a94ecf00e6020105ad19c9.zip |
In smbstatus, mark locking.tdb and sessionid.tdb as CLEAR_IF_FIRST
This is needed to inform ctdb that it's not a persistent database, with the
O_RDONLY the tdb backend ignores this.
Merge from 491f902098d33f in 3-0-ctdb
(This used to be commit 065938ccb7bb0052746267c433637f0e05b95d85)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c index a42c2a11e0..ffa3fbd17f 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -386,7 +386,7 @@ static int traverse_sessionid(struct db_record *db, void *state) if ( show_processes ) { struct db_context *db; db = db_open(NULL, lock_path("sessionid.tdb"), 0, - TDB_DEFAULT, O_RDWR, 0644); + TDB_CLEAR_IF_FIRST, O_RDONLY, 0644); if (!db) { d_printf("sessionid.tdb not initialised\n"); } else { @@ -428,7 +428,7 @@ static int traverse_sessionid(struct db_record *db, void *state) int result; struct db_context *db; db = db_open(NULL, lock_path("locking.tdb"), 0, - TDB_DEFAULT, O_RDONLY, 0); + TDB_CLEAR_IF_FIRST, O_RDONLY, 0); if (!db) { d_printf("%s not initialised\n", |