myserver-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myserver-commit] [SCM] GNU MyServer branch, master, updated. 0_9-399-g5


From: Giuseppe Scrivano
Subject: [myserver-commit] [SCM] GNU MyServer branch, master, updated. 0_9-399-g510c8b8
Date: Mon, 09 Nov 2009 16:58:30 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU MyServer".

The branch, master has been updated
       via  510c8b8238b8cb4a2d5ccfbdda0058512d7913d5 (commit)
       via  06ee870fbd638a27e7c669fcecd5ea1a75e72226 (commit)
      from  f4d8d8a3011332a400b96629f8fdec658377b2a9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------


commit 510c8b8238b8cb4a2d5ccfbdda0058512d7913d5
Author: Giuseppe Scrivano <address@hidden>
Date:   Mon Nov 9 17:57:16 2009 +0100

    Small optimization: pass the argument by reference, not by copy.

diff --git a/myserver/include/log/stream/log_stream.h 
b/myserver/include/log/stream/log_stream.h
index 42016d9..73048dc 100644
--- a/myserver/include/log/stream/log_stream.h
+++ b/myserver/include/log/stream/log_stream.h
@@ -78,7 +78,7 @@ public:
 protected:
   virtual int streamCycle ();
   int doCycle ();
-  int write (string message);
+  int write (const string &message);
   int resetFilters ();
   u_long nbw;
   u_long cycle;
diff --git a/myserver/src/log/stream/log_stream.cpp 
b/myserver/src/log/stream/log_stream.cpp
index 2fc156a..c46e5a8 100644
--- a/myserver/src/log/stream/log_stream.cpp
+++ b/myserver/src/log/stream/log_stream.cpp
@@ -76,9 +76,9 @@ LogStream::doCycle ()
 }
 
 int
-LogStream::write (string message)
+LogStream::write (const string &message)
 {
-  return fc->write (message.c_str (), message.size (), &nbw);
+  return fc->write (message.c_str (), message.length (), &nbw);
 }
 
 int



commit 06ee870fbd638a27e7c669fcecd5ea1a75e72226
Author: Giuseppe Scrivano <address@hidden>
Date:   Mon Nov 9 17:56:00 2009 +0100

    Specify which log use when the new-line is notified.

diff --git a/myserver/src/log/log_manager.cpp b/myserver/src/log/log_manager.cpp
index d6698e0..1f9ebea 100644
--- a/myserver/src/log/log_manager.cpp
+++ b/myserver/src/log/log_manager.cpp
@@ -676,7 +676,7 @@ LogManager::log (const void* owner, const string & type, 
LoggingLevel level,
              || notify (owner, type, MYSERVER_LOG_EVT_LOG, &message);
 
       if (appendNL)
-        failure |= notify (owner, MYSERVER_LOG_EVT_LOG, &newline);
+        failure |= notify (owner, type, MYSERVER_LOG_EVT_LOG, &newline);
     }
   catch (...)
     {

-----------------------------------------------------------------------

Summary of changes:
 myserver/include/log/stream/log_stream.h |    2 +-
 myserver/src/log/log_manager.cpp         |    2 +-
 myserver/src/log/stream/log_stream.cpp   |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU MyServer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]