git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74d940c
)
pvfs_open: set h->have_opendb_entry directly after odb_open_file()
author
Stefan Metzmacher
<metze@samba.org>
Sat, 15 Mar 2008 11:36:20 +0000
(12:36 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Sat, 15 Mar 2008 11:36:20 +0000
(12:36 +0100)
Otherwise we may not clean up in the destructor.
metze
(This used to be commit
218ec98a1694080748d1ac12baa90ffcda364833
)
source4/ntvfs/posix/pvfs_open.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/pvfs_open.c
b/source4/ntvfs/posix/pvfs_open.c
index d1cb0eb6034db4fbc89710753f64291d580f9837..6e77cb7c756d9f64790f5338935bd82442d4aab5 100644
(file)
--- a/
source4/ntvfs/posix/pvfs_open.c
+++ b/
source4/ntvfs/posix/pvfs_open.c
@@
-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 */