projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Annotations. Introduced define for CFile state.
[idzebra-moved-to-github.git]
/
bfile
/
commit.c
diff --git
a/bfile/commit.c
b/bfile/commit.c
index
03f0b25
..
0faba91
100644
(file)
--- a/
bfile/commit.c
+++ b/
bfile/commit.c
@@
-261,9
+261,9
@@
int cf_commit(CFile cf)
return -1;
}
yaz_log(log_level, "cf_commit: state=%d", cf->head.state);
return -1;
}
yaz_log(log_level, "cf_commit: state=%d", cf->head.state);
- if (cf->head.state == 1)
+ if (cf->head.state == CFILE_STATE_HASH)
return cf_commit_hash(cf);
return cf_commit_hash(cf);
- else if (cf->head.state == 2)
+ else if (cf->head.state == CFILE_STATE_FLAT)
return cf_commit_flat(cf);
else
{
return cf_commit_flat(cf);
else
{