projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: ODR violation results in memory corruption
[lttng-tools.git]
/
src
/
common
/
fd-tracker
/
inode.cpp
diff --git
a/src/common/fd-tracker/inode.cpp
b/src/common/fd-tracker/inode.cpp
index 9c1133ea56255281e628533453df8b36d55eac89..95a0f27426c9f943c86aee36d1be11947446f16b 100644
(file)
--- a/
src/common/fd-tracker/inode.cpp
+++ b/
src/common/fd-tracker/inode.cpp
@@
-23,10
+23,12
@@
#include "inode.hpp"
#include "inode.hpp"
+namespace {
struct inode_id {
dev_t device;
ino_t inode;
};
struct inode_id {
dev_t device;
ino_t inode;
};
+} /* namespace */
struct lttng_inode_registry {
/* Hashtable of inode_id to lttng_inode. */
struct lttng_inode_registry {
/* Hashtable of inode_id to lttng_inode. */
@@
-60,7
+62,8
@@
struct lttng_unlinked_file_pool {
unsigned int next_id;
};
unsigned int next_id;
};
-static struct {
+namespace {
+struct {
pthread_mutex_t lock;
bool initialized;
unsigned long value;
pthread_mutex_t lock;
bool initialized;
unsigned long value;
@@
-69,6
+72,7
@@
static struct {
.initialized = false,
.value = 0,
};
.initialized = false,
.value = 0,
};
+} /* namespace */
static unsigned long lttng_inode_id_hash(const struct inode_id *id)
{
static unsigned long lttng_inode_id_hash(const struct inode_id *id)
{
This page took
0.023447 seconds
and
4
git commands to generate.