Fixes from develop experimental (on top of 1.11.2) (#3017)

* MongoDB::PooledConnection: Prevent unwanted release by disabling copy semantics. Enabled move semantics for C++11.

* Construct MongoDB::Cursor from aggragation cursor.

* Added function to get OS-specific numerical thread ID and %J pattern to use numerical OS thread id in pattern formatter.

Co-authored-by: Tomaz Beltram <tomaz.beltram@topit.si>
This commit is contained in:
Matej Kenda
2022-05-19 00:23:16 +02:00
committed by GitHub
parent 5bac3e303f
commit 8a8c23c352
19 changed files with 102 additions and 6 deletions

View File

@@ -132,6 +132,9 @@ public:
long getTid() const;
/// Returns the numeric thread identifier for the message.
long getOsTid() const;
/// Returns the numeric thread identifier for the message.
void setPid(long pid);
/// Sets the process identifier for the message.
@@ -200,6 +203,7 @@ private:
Priority _prio;
Timestamp _time;
long _tid;
long _ostid;
std::string _thread;
long _pid;
const char* _file;
@@ -246,6 +250,10 @@ inline long Message::getTid() const
return _tid;
}
inline long Message::getOsTid() const
{
return _ostid;
}
inline long Message::getPid() const
{