Ignore:
Timestamp:
Nov 27, 2012, 4:56:06 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated vendor to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/lib/serverid.c

    r740 r746  
    234234        TDB_DATA tdbkey;
    235235
    236         if (lp_clustering() && !process_exists(*id)) {
    237                 return false;
     236        if (procid_is_me(id)) {
     237                return true;
     238        }
     239
     240        if (!process_exists(*id)) {
     241                return false;
     242        }
     243
     244        if (id->unique_id == SERVERID_UNIQUE_ID_NOT_TO_VERIFY) {
     245                return true;
    238246        }
    239247
     
    352360        return db->traverse(db, serverid_traverse_fn, &state);
    353361}
     362
     363uint64_t serverid_get_random_unique_id(void)
     364{
     365        uint64_t unique_id = SERVERID_UNIQUE_ID_NOT_TO_VERIFY;
     366
     367        while (unique_id == SERVERID_UNIQUE_ID_NOT_TO_VERIFY) {
     368                generate_random_buffer((uint8_t *)&unique_id,
     369                                        sizeof(unique_id));
     370        }
     371
     372        return unique_id;
     373}
Note: See TracChangeset for help on using the changeset viewer.