1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

r8508: Rename EXCLUSIVE_BREAK_SENT to BREAK_TO_NONE_SENT.

Volker
(This used to be commit 1993e409a53908d299f0b2b0e8e5546236fd580b)
This commit is contained in:
Volker Lendecke 2005-07-15 19:32:56 +00:00 committed by Gerald (Jerry) Carter
parent a5868d58c7
commit 787e526652
2 changed files with 3 additions and 3 deletions

View File

@ -557,7 +557,7 @@ struct current_user
/* Defines for the sent_oplock_break field above. */
#define NO_BREAK_SENT 0
#define EXCLUSIVE_BREAK_SENT 1
#define BREAK_TO_NONE_SENT 1
#define LEVEL_II_BREAK_SENT 2
typedef struct {

View File

@ -276,7 +276,7 @@ BOOL remove_oplock(files_struct *fsp, BOOL break_to_none)
return False;
}
if (fsp->sent_oplock_break == EXCLUSIVE_BREAK_SENT || break_to_none) {
if (fsp->sent_oplock_break == BREAK_TO_NONE_SENT || break_to_none) {
/*
* Deal with a reply when a break-to-none was sent.
*/
@ -784,7 +784,7 @@ static BOOL oplock_break(SMB_DEV_T dev, SMB_INO_T inode, unsigned long file_id,
prepare_break_message( outbuf, fsp, using_levelII);
/* Remember if we just sent a break to level II on this file. */
fsp->sent_oplock_break = using_levelII? LEVEL_II_BREAK_SENT:EXCLUSIVE_BREAK_SENT;
fsp->sent_oplock_break = using_levelII? LEVEL_II_BREAK_SENT:BREAK_TO_NONE_SENT;
/* Save the server smb signing state. */
sign_state = srv_oplock_set_signing(False);