);
if (array_len(tokens_in_this_message) > 0) {
+ begin_critical_section(S_INDEXER);
cdb_begin_transaction();
for (i=0; i<array_len(tokens_in_this_message); ++i) {
memcpy(newbucket, cdb_bucket.ptr, cdb_bucket.len);
for (j=0; j<nmsgs; ++j) {
if ((newbucket[j] == msgnum) || (newbucket[j] == 0)) {
- fprintf(stderr, "removing %ld\n", newbucket[j]);
memcpy(&newbucket[j], &newbucket[j+1], ((nmsgs-j)*sizeof(long)));
--j;
--nmsgs;
if (server_shutting_down) break;
}
cdb_end_transaction();
+ end_critical_section(S_INDEXER);
CtdlSetConfigLong("MMfulltext", msgnum);
}
array_free(tokens_in_this_message);