projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
b48e92d
)
Chicken and Egg problem in clone fixed.
author
Brian Aker
<brian@tangent.org>
Sun, 20 Jan 2008 01:47:44 +0000
(17:47 -0800)
committer
Brian Aker
<brian@tangent.org>
Sun, 20 Jan 2008 01:47:44 +0000
(17:47 -0800)
lib/memcached.c
patch
|
blob
|
history
diff --git
a/lib/memcached.c
b/lib/memcached.c
index 946af6cb8f6bdd9a4edbc0e2c8179a001eed1031..5d89e721faf27b5d49e2c4c3a82dba9738c32000 100644
(file)
--- a/
lib/memcached.c
+++ b/
lib/memcached.c
@@
-60,15
+60,9
@@
memcached_st *memcached_clone(memcached_st *clone, memcached_st *ptr)
memcached_return rc= MEMCACHED_SUCCESS;
memcached_st *new_clone;
+ WATCHPOINT;
if (ptr == NULL)
- {
- new_clone= memcached_create(clone);
-
- if (ptr->on_clone)
- ptr->on_clone(NULL, new_clone);
-
- return new_clone;
- }
+ return memcached_create(clone);
if (ptr->is_allocated == MEMCACHED_USED)
{
@@
-76,6
+70,7
@@
memcached_st *memcached_clone(memcached_st *clone, memcached_st *ptr)
return NULL;
}
+ WATCHPOINT;
new_clone= memcached_create(clone);
if (new_clone == NULL)