Lines 423-429
char* notify_transcation_get_one_dn ( unsigned long last_known_id )
|
Link Here
|
---|
|
423 |
memset(buffer, 0, sizeof(buffer)); |
423 |
memset(buffer, 0, sizeof(buffer)); |
424 |
|
424 |
|
425 |
if ((pos = index_get(index, last_known_id)) >= 0) { |
425 |
if ((pos = index_get(index, last_known_id)) >= 0) { |
426 |
fseek(notify.tf, pos, SEEK_SET); |
426 |
if (fseek(notify.tf, pos, SEEK_SET) != 0) { |
|
|
427 |
univention_debug(UV_DEBUG_TRANSFILE, UV_DEBUG_WARN, "invalid transaction index"); |
428 |
index_invalidate(notify.tf); |
429 |
} |
427 |
if (fgets(buffer, sizeof(buffer), notify.tf) != NULL) { |
430 |
if (fgets(buffer, sizeof(buffer), notify.tf) != NULL) { |
428 |
univention_debug(UV_DEBUG_TRANSFILE, UV_DEBUG_ALL, "BUFFER=%s", buffer); |
431 |
univention_debug(UV_DEBUG_TRANSFILE, UV_DEBUG_ALL, "BUFFER=%s", buffer); |
429 |
if ( buffer[strlen(buffer)-1] == '\n' ) { |
432 |
if ( buffer[strlen(buffer)-1] == '\n' ) { |
Lines 433-438
char* notify_transcation_get_one_dn ( unsigned long last_known_id )
|
Link Here
|
---|
|
433 |
if (id == last_known_id) { |
436 |
if (id == last_known_id) { |
434 |
found = true; |
437 |
found = true; |
435 |
univention_debug(UV_DEBUG_TRANSFILE, UV_DEBUG_INFO, "Found (get_one_dn, index) %ld",id); |
438 |
univention_debug(UV_DEBUG_TRANSFILE, UV_DEBUG_INFO, "Found (get_one_dn, index) %ld",id); |
|
|
439 |
} else { |
440 |
univention_debug(UV_DEBUG_TRANSFILE, UV_DEBUG_WARN, "invalid transaction index"); |
441 |
index_invalidate(notify.tf); |
436 |
} |
442 |
} |
437 |
} |
443 |
} |
438 |
} |
444 |
} |