diff options
author | Jeremy Allison <jra@samba.org> | 2001-09-19 06:49:02 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-09-19 06:49:02 +0000 |
commit | 8c8b9c69e5c92c6e18710af33c7851c2fb8913d3 (patch) | |
tree | 4278bfa710928e0fe345eb043e858518460c41f9 /source3/locking | |
parent | 01bb01b3ca0be89dacb73b5f7add2bb682735b5a (diff) | |
download | samba-8c8b9c69e5c92c6e18710af33c7851c2fb8913d3.tar.gz samba-8c8b9c69e5c92c6e18710af33c7851c2fb8913d3.tar.bz2 samba-8c8b9c69e5c92c6e18710af33c7851c2fb8913d3.zip |
Removed test code that got added by accident.
Jeremy.
(This used to be commit fc91ecc236e0d27f5836e9820332ababd762f1a7)
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/locking.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 23766f41dc..db0de5bb3f 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -361,18 +361,7 @@ static TDB_DATA locking_key_fsp(files_struct *fsp) BOOL lock_share_entry(connection_struct *conn, SMB_DEV_T dev, SMB_INO_T inode) { -#if 1 /* JRATEST */ - int count = 0; - for (count = 0; count < LOCK_SHARE_ENTRY_SPIN_COUNT; count++) - if (tdb_chainlock(tdb, locking_key(dev, inode)) == 0) - return True; - else - DEBUG(0,("lock_share_entry: locking (%d) for dev = %x, inode = %.0f failed with error %s\n", - count, (unsigned int)dev, (double)inode, strerror(errno) )); - return False; -#else return tdb_chainlock(tdb, locking_key(dev, inode)) == 0; -#endif } /******************************************************************* @@ -391,18 +380,7 @@ void unlock_share_entry(connection_struct *conn, BOOL lock_share_entry_fsp(files_struct *fsp) { -#if 1 /* JRATEST */ - int count = 0; - for (count = 0; count < LOCK_SHARE_ENTRY_SPIN_COUNT; count++) - if (tdb_chainlock(tdb, locking_key(fsp->dev, fsp->inode)) == 0) - return True; - else - DEBUG(0,("lock_share_entry_fsp: locking (%d) for dev = %x, inode = %.0f failed with error %s\n", - count, (unsigned int)fsp->dev, (double)fsp->inode, strerror(errno) )); - return False; -#else return tdb_chainlock(tdb, locking_key(fsp->dev, fsp->inode)) == 0; -#endif } /******************************************************************* |