Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
dc7dd5a1
Commit
dc7dd5a1
authored
May 30, 2013
by
Yoni Fogel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Tokutek/ft-index
parents
4c8c6704
8a3d908b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
src/export.map
src/export.map
+2
-0
util/partitioned_counter.h
util/partitioned_counter.h
+9
-1
No files found.
src/export.map
View file @
dc7dd5a1
...
...
@@ -29,6 +29,8 @@
db_env_set_flusher_thread_callback;
db_env_set_num_bucket_mutexes;
read_partitioned_counter;
toku_ydb_error_all_cases;
toku_set_trace_file;
toku_close_trace_file;
...
...
util/partitioned_counter.h
View file @
dc7dd5a1
...
...
@@ -122,6 +122,10 @@ PATENT RIGHTS GRANT:
//
// The old C interface. This required a bunch of explicit ___attribute__((__destructor__)) functions to remember to destroy counters at the end.
#if defined(__cplusplus)
extern
"C"
{
#endif
typedef
struct
partitioned_counter
*
PARTITIONED_COUNTER
;
PARTITIONED_COUNTER
create_partitioned_counter
(
void
);
// Effect: Create a counter, initialized to zero.
...
...
@@ -133,7 +137,7 @@ void increment_partitioned_counter(PARTITIONED_COUNTER, uint64_t amount);
// Effect: Increment the counter by amount.
// Requires: No overflows. This is a 64-bit unsigned counter.
uint64_t
read_partitioned_counter
(
PARTITIONED_COUNTER
);
uint64_t
read_partitioned_counter
(
PARTITIONED_COUNTER
)
__attribute__
((
__visibility__
(
"default"
)))
;
// Effect: Return the current value of the counter.
void
partitioned_counters_init
(
void
);
...
...
@@ -142,6 +146,10 @@ void partitioned_counters_init(void);
void
partitioned_counters_destroy
(
void
);
// Effect: Destroy any partitioned counters data structures.
#if defined(__cplusplus)
};
#endif
#if 0
#include <pthread.h>
#include "fttypes.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment