diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2010-05-30 04:41:50 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2010-05-30 04:41:50 +0000 |
commit | 4bfc868fa38694920f916a2d7b3f93f1c5cab28a (patch) | |
tree | 0007c480d3b7f900c96e2915c058559fe2b01dc8 /databases/flare/files/patch-lib-logger.cc | |
parent | fix typo failing install (diff) |
Add flare 1.0.9, is distributed, and persistent key-value storage
compatible / memcached, and has more features(as follows):
* persistent storage (you can use flare as persistent memcached)
* pluggable storage (currently only Tokyo Cabinet is available, though:)
* data replication (synchronous or asynchronous)
* data partitioning (automatically partitioned according to # of master
servers (clients do not have to care about it))
* dynamic reconstruction, and partitioning (you can dynamically (I mean,
without any service interruption) add slave servers and partition
master servers)
* node monitoring and failover (if any server is down, the server is
automatically isolated from active servers and another slave server
is promoted to master server)
* request proxy (you can always get same result regardless of servers
you connect to. so you can think flare servers as one big key-value
storage)
* over 256 bytes keys, and over 1M bytes values are available
WWW: http://labs.gree.jp/Top/OpenSource/Flare-en.html
Notes
Notes:
svn path=/head/; revision=255301
Diffstat (limited to 'databases/flare/files/patch-lib-logger.cc')
-rw-r--r-- | databases/flare/files/patch-lib-logger.cc | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/databases/flare/files/patch-lib-logger.cc b/databases/flare/files/patch-lib-logger.cc new file mode 100644 index 000000000000..cc996dd13519 --- /dev/null +++ b/databases/flare/files/patch-lib-logger.cc @@ -0,0 +1,74 @@ +--- src/lib/logger.cc.orig 2009-10-09 19:08:47.000000000 +0900 ++++ src/lib/logger.cc 2010-05-29 10:05:44.216154429 +0900 +@@ -69,7 +69,7 @@ + */ + void logger::emerg(const char* file, const int line, const char* func, const char *format, ...) { + ostringstream s; +- s << "[" << (unsigned int)pthread_self() << "][EMG][" << file << ":" << line << "-" << func << "] "; ++ s << "[" << (unsigned long)pthread_self() << "][EMG][" << file << ":" << line << "-" << func << "] "; + + char buf[1024]; + va_list op; +@@ -85,7 +85,7 @@ + */ + void logger::alert(const char* file, const int line, const char* func, const char *format, ...) { + ostringstream s; +- s << "[" << (unsigned int)pthread_self() << "][ALT][" << file << ":" << line << "-" << func << "] "; ++ s << "[" << (unsigned long)pthread_self() << "][ALT][" << file << ":" << line << "-" << func << "] "; + + char buf[1024]; + va_list op; +@@ -101,7 +101,7 @@ + */ + void logger::crit(const char* file, const int line, const char* func, const char *format, ...) { + ostringstream s; +- s << "[" << (unsigned int)pthread_self() << "][CRT][" << file << ":" << line << "-" << func << "] "; ++ s << "[" << (unsigned long)pthread_self() << "][CRT][" << file << ":" << line << "-" << func << "] "; + + char buf[1024]; + va_list op; +@@ -117,7 +117,7 @@ + */ + void logger::err(const char* file, const int line, const char* func, const char *format, ...) { + ostringstream s; +- s << "[" << (unsigned int)pthread_self() << "][ERR][" << file << ":" << line << "-" << func << "] "; ++ s << "[" << (unsigned long)pthread_self() << "][ERR][" << file << ":" << line << "-" << func << "] "; + + char buf[1024]; + va_list op; +@@ -133,7 +133,7 @@ + */ + void logger::warning(const char* file, const int line, const char* func, const char *format, ...) { + ostringstream s; +- s << "[" << (unsigned int)pthread_self() << "][WRN][" << file << ":" << line << "-" << func << "] "; ++ s << "[" << (unsigned long)pthread_self() << "][WRN][" << file << ":" << line << "-" << func << "] "; + + char buf[1024]; + va_list op; +@@ -149,7 +149,7 @@ + */ + void logger::notice(const char* file, const int line, const char* func, const char *format, ...) { + ostringstream s; +- s << "[" << (unsigned int)pthread_self() << "][NTC][" << file << ":" << line << "-" << func << "] "; ++ s << "[" << (unsigned long)pthread_self() << "][NTC][" << file << ":" << line << "-" << func << "] "; + + char buf[1024]; + va_list op; +@@ -165,7 +165,7 @@ + */ + void logger::info(const char* file, const int line, const char* func, const char *format, ...) { + ostringstream s; +- s << "[" << (unsigned int)pthread_self() << "][INF][" << file << ":" << line << "-" << func << "] "; ++ s << "[" << (unsigned long)pthread_self() << "][INF][" << file << ":" << line << "-" << func << "] "; + + char buf[1024]; + va_list op; +@@ -181,7 +181,7 @@ + */ + void logger::debug(const char* file, const int line, const char* func, const char *format, ...) { + ostringstream s; +- s << "[" << (unsigned int)pthread_self() << "][DBG][" << file << ":" << line << "-" << func << "] "; ++ s << "[" << (unsigned long)pthread_self() << "][DBG][" << file << ":" << line << "-" << func << "] "; + + char buf[1024]; + va_list op; |