Skip to content

Commit

Permalink
FIX: Add svc_code to ap_lock_name
Browse files Browse the repository at this point in the history
  • Loading branch information
namsic committed Aug 29, 2024
1 parent 500364b commit 5bdd03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmemcached/arcus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static inline arcus_return_t do_arcus_proxy_create(memcached_st *mc,
arcus->proxy.data->mutex.fname = NULL;

char ap_lock_fname[64];
snprintf(ap_lock_fname, 64, ".arcus_proxy_lock.%d", getpid());
snprintf(ap_lock_fname, 64, ".arcus_proxy_lock_%s.%d", arcus->zk.svc_code, getpid());

if (proc_mutex_create(&arcus->proxy.data->mutex, ap_lock_fname) != 0) {
ZOO_LOG_ERROR(("Cannot create the proxy lock file. You might have to"
Expand Down

0 comments on commit 5bdd03b

Please sign in to comment.