mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
pvfs_open: set h->have_opendb_entry directly after odb_open_file()
Otherwise we may not clean up in the destructor. metze (This used to be commit 218ec98a1694080748d1ac12baa90ffcda364833)
This commit is contained in:
parent
74d940ca57
commit
e76c8aa097
@ -1369,6 +1369,8 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs,
|
||||
return status;
|
||||
}
|
||||
|
||||
f->handle->have_opendb_entry = true;
|
||||
|
||||
if (pvfs->flags & PVFS_FLAG_FAKE_OPLOCKS) {
|
||||
oplock_granted = OPLOCK_BATCH;
|
||||
} else if (oplock_granted != OPLOCK_NONE) {
|
||||
@ -1379,8 +1381,6 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs,
|
||||
}
|
||||
}
|
||||
|
||||
f->handle->have_opendb_entry = true;
|
||||
|
||||
stream_existed = name->stream_exists;
|
||||
|
||||
/* if this was a stream create then create the stream as well */
|
||||
|
Loading…
x
Reference in New Issue
Block a user