Ignore:
Timestamp:
May 13, 2014, 11:39:04 AM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update trunk to 3.6.23

Location:
trunk/server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/lib/tdb/common/lock.c

    r857 r862  
    5252        int lockFile = 0;
    5353
    54         if (off == ACTIVE_LOCK)
     54        if (off == ACTIVE_LOCK || off == OPEN_LOCK || off == TRANSACTION_LOCK)
    5555                lockFile = tdb->hActiveLock;
    5656        else
     
    7777
    7878        TDB_LOG((tdb, TDB_DEBUG_TRACE,"fcntl_lock: (fd=%d) offset=%lld rw_type=%d len=%lld waitflag=%d (rc=%d)\n",
    79                 tdb->fd, off, rw, len, waitflag, rc));
     79                lockFile, off, rw, len, waitflag, rc));
    8080
    8181        return rc;
     
    162162        int rc = 0;
    163163        int lockFile = 0;
    164         if (off == ACTIVE_LOCK)
     164        if (off == ACTIVE_LOCK || off == OPEN_LOCK || off == TRANSACTION_LOCK)
    165165                lockFile = tdb->hActiveLock;
    166166        else
     
    182182
    183183        TDB_LOG((tdb, TDB_DEBUG_TRACE,"fcntl_unlock: (fd=%d) offset=%lld rw_type=%d len=%lld (rc=%d)\n",
    184                  tdb->fd, off, rw, len, rc));
     184                 lockFile, off, rw, len, rc));
    185185
    186186        return rc;
  • trunk/server/lib/tdb/common/open.c

    r857 r862  
    303303        fcntl(tdb->fd, F_SETFD, v | FD_CLOEXEC);
    304304
     305#ifdef __OS2__
     306        if (os2_crtActiveLock(tdb, name, 1, mode) != 0)
     307                goto fail;
     308#endif
     309
    305310        /* ensure there is only one process initialising at once */
    306311        if (tdb_nest_lock(tdb, OPEN_LOCK, F_WRLCK, TDB_LOCK_WAIT) == -1) {
     
    309314                goto fail;      /* errno set by tdb_brlock */
    310315        }
    311 
    312 #ifdef __OS2__
    313         if (os2_crtActiveLock(tdb, name, 1, mode) != 0)
    314                 goto fail;
    315 #endif
    316316
    317317        /* we need to zero database if we are the only one with it open */
Note: See TracChangeset for help on using the changeset viewer.