projects
/
bluesky.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81b37a6
)
Yet another cleaner bugfix.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Fri, 18 Mar 2011 08:31:28 +0000
(
01:31
-0700)
committer
Michael Vrable
<mvrable@cs.ucsd.edu>
Fri, 18 Mar 2011 08:31:28 +0000
(
01:31
-0700)
bluesky/cleaner.c
patch
|
blob
|
history
diff --git
a/bluesky/cleaner.c
b/bluesky/cleaner.c
index
be0ab6a
..
a892e72
100644
(file)
--- a/
bluesky/cleaner.c
+++ b/
bluesky/cleaner.c
@@
-303,6
+303,12
@@
void bluesky_cleaner_merge(BlueSkyFS *fs)
return;
}
+ if (checkpoint->type != LOGTYPE_CHECKPOINT) {
+ g_warning("Last cleaner object not a checkpoint; cleaning probably in progress.");
+ bluesky_cleaner_item_free(checkpoint);
+ return;
+ }
+
/* Iterate over each of the inode map sections in the checkpoint */
for (int i = 0; i < checkpoint->links->len; i++) {
BlueSkyCleanerLink *link = &g_array_index(checkpoint->links,