Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiangyu Tong
server
Commits
dc7dd5a1
Commit
dc7dd5a1
authored
12 years ago
by
Yoni Fogel
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:Tokutek/ft-index
parents
4c8c6704
8a3d908b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/export.map
+2
-0
2 additions, 0 deletions
src/export.map
util/partitioned_counter.h
+9
-1
9 additions, 1 deletion
util/partitioned_counter.h
with
11 additions
and
1 deletion
src/export.map
+
2
−
0
View file @
dc7dd5a1
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
db_env_set_flusher_thread_callback;
db_env_set_flusher_thread_callback;
db_env_set_num_bucket_mutexes;
db_env_set_num_bucket_mutexes;
read_partitioned_counter;
toku_ydb_error_all_cases;
toku_ydb_error_all_cases;
toku_set_trace_file;
toku_set_trace_file;
toku_close_trace_file;
toku_close_trace_file;
...
...
This diff is collapsed.
Click to expand it.
util/partitioned_counter.h
+
9
−
1
View file @
dc7dd5a1
...
@@ -122,6 +122,10 @@ PATENT RIGHTS GRANT:
...
@@ -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.
// 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
;
typedef
struct
partitioned_counter
*
PARTITIONED_COUNTER
;
PARTITIONED_COUNTER
create_partitioned_counter
(
void
);
PARTITIONED_COUNTER
create_partitioned_counter
(
void
);
// Effect: Create a counter, initialized to zero.
// Effect: Create a counter, initialized to zero.
...
@@ -133,7 +137,7 @@ void increment_partitioned_counter(PARTITIONED_COUNTER, uint64_t amount);
...
@@ -133,7 +137,7 @@ void increment_partitioned_counter(PARTITIONED_COUNTER, uint64_t amount);
// Effect: Increment the counter by amount.
// Effect: Increment the counter by amount.
// Requires: No overflows. This is a 64-bit unsigned counter.
// 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.
// Effect: Return the current value of the counter.
void
partitioned_counters_init
(
void
);
void
partitioned_counters_init
(
void
);
...
@@ -142,6 +146,10 @@ void partitioned_counters_init(void);
...
@@ -142,6 +146,10 @@ void partitioned_counters_init(void);
void
partitioned_counters_destroy
(
void
);
void
partitioned_counters_destroy
(
void
);
// Effect: Destroy any partitioned counters data structures.
// Effect: Destroy any partitioned counters data structures.
#if defined(__cplusplus)
};
#endif
#if 0
#if 0
#include <pthread.h>
#include <pthread.h>
#include "fttypes.h"
#include "fttypes.h"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment