git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ChangeLog update
[stg.git]
/
include
/
stg
/
user_property.h
diff --git
a/include/stg/user_property.h
b/include/stg/user_property.h
index ade21f4e8024e040dd2d6d13ba393e02e27e8731..fbd6aa4668ed2d351bfc6615badfeff3190aefdb 100644
(file)
--- a/
include/stg/user_property.h
+++ b/
include/stg/user_property.h
@@
-15,12
+15,13
@@
$Author: faust $
#include <sstream>
#include <iostream>
#include <sstream>
#include <iostream>
+#include "stg/logger.h"
+#include "stg/locker.h"
+#include "stg/scriptexecuter.h"
+
#include "store.h"
#include "admin.h"
#include "notifer.h"
#include "store.h"
#include "admin.h"
#include "notifer.h"
-#include "logger.h"
-#include "locker.h"
-#include "scriptexecuter.h"
#include "noncopyable.h"
extern const volatile time_t stgTime;
#include "noncopyable.h"
extern const volatile time_t stgTime;
@@
-173,7
+174,10
@@
template <typename varT>
inline
USER_PROPERTY<varT>::USER_PROPERTY(varT & val)
: value(val),
inline
USER_PROPERTY<varT>::USER_PROPERTY(varT & val)
: value(val),
- modificationTime(stgTime)
+ modificationTime(stgTime),
+ beforeNotifiers(),
+ afterNotifiers(),
+ mutex()
{
pthread_mutex_init(&mutex, NULL);
}
{
pthread_mutex_init(&mutex, NULL);
}
@@
-282,8
+286,6
@@
bool USER_PROPERTY_LOGGED<varT>::Set(const varT & val,
const std::string & msg)
{
const PRIV * priv = admin->GetPriv();
const std::string & msg)
{
const PRIV * priv = admin->GetPriv();
-std::string adm_login = admin->GetLogin();
-std::string adm_ip = admin->GetIPStr();
if ((priv->userConf && !isStat) ||
(priv->userStat && isStat) ||
if ((priv->userConf && !isStat) ||
(priv->userStat && isStat) ||