/* 1. check entry in locking.tdb */
- /*
- * Q: fetch with lock right away?
- */
-/*
- sharemode_lock = fetch_share_mode_unlocked(mem_ctx,
- op->global->backend_file_id);
-*/
sharemode_lock = get_existing_share_mode_lock(mem_ctx,
op->global->backend_file_id);
if (sharemode_lock == NULL) {
/* 2. proceed with opening file */
- /*
- * refetch with lock and update the pid // fetch with lock right away above
- */
-/*
- talloc_free(sharemode_lock);
- sharemode_lock = get_share_mode_lock(mem_ctx,
- op->global->backend_file_id);
- if (sharemode_lock == NULL) {
- return NT_STATUS_OBJECT_NAME_NOT_FOUND;
- }
-*/
-
/*
* circumstances seems ok, do the open
*/