ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications. Each time they are implemented there is a lot of work that goes into fixing the bugs and race conditions that are inevitable. Because of the difficulty of implementing these kinds of services, applications initially usually skimp on them ,which make them brittle in the presence of change and difficult to manage. Even when done correctly, different implementations of these services lead to management complexity when the applications are deployed. This is the Java based server package.
14 lines
548 B
C
14 lines
548 B
C
$NetBSD: patch-src__zk_log.c,v 1.1.1.1 2012/04/19 10:31:37 fhajny Exp $
|
|
|
|
Needs to be cast as int.
|
|
--- src/c/src/zk_log.c.orig 2012-02-06 10:48:40.000000000 +0000
|
|
+++ src/c/src/zk_log.c
|
|
@@ -133,7 +133,7 @@ void log_message(ZooLogLevel curLevel,in
|
|
#endif
|
|
if(pid==0)pid=getpid();
|
|
#ifndef THREADED
|
|
- fprintf(LOGSTREAM, "%s:%d:%s@%s@%d: %s\n", time_now(get_time_buffer()),pid,
|
|
+ fprintf(LOGSTREAM, "%s:%d:%s@%s@%d: %s\n", time_now(get_time_buffer()),(int)pid,
|
|
dbgLevelStr[curLevel],funcName,line,message);
|
|
#else
|
|
#ifdef WIN32
|