[Pkg-owncloud-commits] [ocsync] 03/09: Reset the db to 0 after closing it.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sun Dec 8 21:51:47 UTC 2013
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository ocsync.
commit 3590db47ace354f27f3441c2d41f604984d53076
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Tue Dec 3 14:08:18 2013 +0100
Reset the db to 0 after closing it.
This avoids closing it again and possibly crashing
Maybe the cause of the crash described in
https://github.com/owncloud/mirall/issues/1229
---
src/csync.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/csync.c b/src/csync.c
index 526e819..2425d47 100644
--- a/src/csync.c
+++ b/src/csync.c
@@ -706,6 +706,7 @@ int csync_commit(CSYNC *ctx) {
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "ERR: closing of statedb failed.");
rc = -1;
}
+ ctx->statedb.db = NULL;
rc = csync_vio_commit(ctx);
if (rc < 0) {
@@ -761,6 +762,7 @@ int csync_destroy(CSYNC *ctx) {
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "ERR: closing of statedb failed.");
rc = -1;
}
+ ctx->statedb.db = NULL;
csync_vio_shutdown(ctx);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/ocsync.git
More information about the Pkg-owncloud-commits
mailing list