summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 14:09:12 +0200
committerJeremy Allison <jra@samba.org>2013-04-26 15:17:22 -0700
commitf52a3c3cd1ef2d6373819a7ba8c724fa9ca374f5 (patch)
treed3e5b087fb09fd7f79c2e615b1ec819b2f38babf /source3/smbd
parent3e7923d7afe7e47883dd7f7ec4e6a57490232105 (diff)
downloadsamba-f52a3c3cd1ef2d6373819a7ba8c724fa9ca374f5.tar.gz
samba-f52a3c3cd1ef2d6373819a7ba8c724fa9ca374f5.tar.bz2
samba-f52a3c3cd1ef2d6373819a7ba8c724fa9ca374f5.zip
smbd: Remove the unused fsp->pending_break_messages array
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/durable.c4
-rw-r--r--source3/smbd/oplock.c14
2 files changed, 3 insertions, 15 deletions
diff --git a/source3/smbd/durable.c b/source3/smbd/durable.c
index cf837aa2cf..69ba109895 100644
--- a/source3/smbd/durable.c
+++ b/source3/smbd/durable.c
@@ -173,10 +173,6 @@ NTSTATUS vfs_default_durable_disconnect(struct files_struct *fsp,
return NT_STATUS_NOT_SUPPORTED;
}
- if (fsp->num_pending_break_messages > 0) {
- return NT_STATUS_NOT_SUPPORTED;
- }
-
/*
* For now let it be simple and do not keep
* delete on close files durable open
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 2a0d2278f8..aa8484a4c0 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -525,12 +525,9 @@ static void process_oplock_break_message(struct messaging_context *msg_ctx,
}
if (fsp->sent_oplock_break != NO_BREAK_SENT) {
- /* Remember we have to inform the requesting PID when the
- * client replies */
- msg.pid = src;
- ADD_TO_ARRAY(NULL, struct share_mode_entry, msg,
- &fsp->pending_break_messages,
- &fsp->num_pending_break_messages);
+ /*
+ * Nothing to do anymore
+ */
return;
}
@@ -567,11 +564,6 @@ static void process_oplock_break_message(struct messaging_context *msg_ctx,
fsp->sent_oplock_break = break_to_level2 ? LEVEL_II_BREAK_SENT:BREAK_TO_NONE_SENT;
- msg.pid = src;
- ADD_TO_ARRAY(NULL, struct share_mode_entry, msg,
- &fsp->pending_break_messages,
- &fsp->num_pending_break_messages);
-
add_oplock_timeout_handler(fsp);
}