mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
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 commit is contained in:
parent
64b1625f8e
commit
065938ccb7
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user