couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [23/50] [abbrv] git commit: Fix hot code upgrades
Date Fri, 17 Jan 2014 22:11:54 GMT
Fix hot code upgrades


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/commit/0bf440d1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/tree/0bf440d1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/diff/0bf440d1

Branch: refs/heads/import
Commit: 0bf440d141f467b07970833b4f94669dc21af0e3
Parents: 5eea00e
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Wed Jun 6 19:18:11 2012 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Wed Jun 6 19:18:11 2012 -0500

----------------------------------------------------------------------
 c_src/jiffy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/blob/0bf440d1/c_src/jiffy.c
----------------------------------------------------------------------
diff --git a/c_src/jiffy.c b/c_src/jiffy.c
index 3f64fe5..a764ed0 100644
--- a/c_src/jiffy.c
+++ b/c_src/jiffy.c
@@ -42,8 +42,8 @@ reload(ErlNifEnv* env, void** priv, ERL_NIF_TERM info)
 static int
 upgrade(ErlNifEnv* env, void** priv, void** old_priv, ERL_NIF_TERM info)
 {
-    *priv = *old_priv;
-    return 0;
+    enif_free(*old_priv);
+    return load(env, priv, info);
 }
 
 static void


Mime
View raw message