Changeset da6a1e8d07689844ece86d85b7678f12c5981eda

Show
Ignore:
Timestamp:
01/15/10 18:58:00 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1263581880 +0000
git-parent:

[24c08d7acbe8169b72314b7cfef9f1d0a8194934]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1263581880 +0000
Message:

dispaltro says my patch fixes #237

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/stratcon_datastore.c

    rd9050a4 rda6a1e8  
    11811181  syncset_t *syncset = closure; 
    11821182 
    1183   if(!(mask & EVENTER_ASYNCH_WORK)) return 0; 
    1184   if(mask & EVENTER_ASYNCH_CLEANUP) return 0; 
     1183  if((mask & EVENTER_ASYNCH) == EVENTER_ASYNCH) { 
     1184    eventer_add(syncset->completion); 
     1185    eventer_trigger(syncset->completion, EVENTER_READ | EVENTER_WRITE); 
     1186    free(syncset); 
     1187    return 0; 
     1188  } 
     1189  if(!((mask & EVENTER_ASYNCH_WORK) == EVENTER_ASYNCH_WORK)) return 0; 
    11851190 
    11861191  noitL(ds_deb, "Syncing journal sets...\n"); 
     
    12011206  noit_hash_destroy(syncset->ws, free, NULL); 
    12021207  free(syncset->ws); 
    1203   eventer_add(syncset->completion); 
    1204   eventer_trigger(syncset->completion, EVENTER_READ | EVENTER_WRITE); 
    1205   free(syncset); 
    12061208  return 0; 
    12071209}