Another logging fix.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Mon, 27 Sep 2010 23:30:13 +0000 (16:30 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Mon, 27 Sep 2010 23:30:13 +0000 (16:30 -0700)
bluesky/log.c

index 87639db..ed13ac1 100644 (file)
@@ -335,7 +335,7 @@ void bluesky_log_write_commit_point(BlueSkyFS *fs, BlueSkyCloudLog *marker)
     bluesky_cloudlog_sync(commit);
 
     g_mutex_lock(commit->lock);
-    while ((commit->pending_write & CLOUDLOG_JOURNAL))
+    while ((commit->location_flags & CLOUDLOG_UNCOMMITTED))
         g_cond_wait(commit->cond, commit->lock);
     g_mutex_unlock(commit->lock);