mirror of https://gitee.com/bigwinds/arangodb
added PID for process id
This commit is contained in:
parent
5ef5c5650c
commit
b3dd3a4b4a
|
@ -23,6 +23,7 @@
|
|||
#include "Translator.h"
|
||||
|
||||
#include "Basics/StringUtils.h"
|
||||
#include "Basics/Thread.h"
|
||||
#include "Basics/files.h"
|
||||
#include "Basics/tri-strings.h"
|
||||
|
||||
|
@ -102,8 +103,11 @@ std::string arangodb::options::EnvironmentTranslator(std::string const& value,
|
|||
vv.pop_back();
|
||||
}
|
||||
}
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
if (TRI_EqualString(k.c_str(), "PID")) {
|
||||
vv = std::to_string(Thread::currentProcessId());
|
||||
}
|
||||
} else {
|
||||
vv = v;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue