couchbase 3.2.0 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +24 -18
- package/binding.gyp +88 -85
- package/deps/lcb/CMakeLists.txt +1 -1
- package/deps/lcb/CONTRIBUTING.md +1 -1
- package/deps/lcb/README.markdown +2 -2
- package/deps/lcb/RELEASE_NOTES.markdown +99 -14
- package/deps/lcb/cmake/Modules/GetVersionInfo.cmake +1 -1
- package/deps/lcb/contrib/cbsasl/src/scram-sha/scram_utils.cc +22 -26
- package/deps/lcb/contrib/lcb-jsoncpp/lcb-jsoncpp.cpp +20 -7
- package/deps/lcb/doc/Doxyfile +1 -1
- package/deps/lcb/example/CMakeLists.txt +4 -4
- package/deps/lcb/example/libuvdirect/main.c +39 -12
- package/deps/lcb/example/minimal/durability.cc +149 -0
- package/deps/lcb/example/minimal/query.c +11 -9
- package/deps/lcb/gyp_config/common/libcouchbase/configuration.h +3 -3
- package/deps/lcb/gyp_config/linux/arm64/config.h +243 -0
- package/deps/lcb/include/libcouchbase/couchbase.h +80 -5
- package/deps/lcb/include/libcouchbase/error.h +2 -0
- package/deps/lcb/include/libcouchbase/ixmgmt.h +15 -10
- package/deps/lcb/include/libcouchbase/tracing.h +2 -2
- package/deps/lcb/include/memcached/protocol_binary.h +21 -0
- package/deps/lcb/libcouchbase.gyp +347 -349
- package/deps/lcb/packaging/deb/control +1 -1
- package/deps/lcb/src/analytics/analytics_handle.cc +13 -5
- package/deps/lcb/src/analytics/analytics_handle.hh +29 -0
- package/deps/lcb/src/bootstrap.cc +6 -3
- package/deps/lcb/src/capi/cmd_analytics.cc +12 -1
- package/deps/lcb/src/capi/cmd_analytics.hh +30 -0
- package/deps/lcb/src/capi/cmd_counter.hh +23 -0
- package/deps/lcb/src/capi/cmd_exists.hh +24 -1
- package/deps/lcb/src/capi/cmd_get.hh +22 -0
- package/deps/lcb/src/capi/cmd_get_replica.hh +23 -0
- package/deps/lcb/src/capi/cmd_http.hh +7 -0
- package/deps/lcb/src/capi/cmd_query.cc +11 -1
- package/deps/lcb/src/capi/cmd_query.hh +31 -0
- package/deps/lcb/src/capi/cmd_remove.hh +23 -0
- package/deps/lcb/src/capi/cmd_search.cc +6 -0
- package/deps/lcb/src/capi/cmd_search.hh +23 -0
- package/deps/lcb/src/capi/cmd_store.hh +33 -21
- package/deps/lcb/src/capi/cmd_subdoc.hh +35 -0
- package/deps/lcb/src/capi/cmd_touch.hh +23 -0
- package/deps/lcb/src/capi/cmd_unlock.hh +23 -0
- package/deps/lcb/src/capi/cmd_view.hh +6 -0
- package/deps/lcb/src/capi/collection_qualifier.hh +2 -2
- package/deps/lcb/src/cntl.cc +45 -11
- package/deps/lcb/src/crypto.cc +2 -2
- package/deps/lcb/src/dns-srv.cc +5 -3
- package/deps/lcb/src/errmap.cc +5 -9
- package/deps/lcb/src/errmap.h +7 -3
- package/deps/lcb/src/handler.cc +24 -18
- package/deps/lcb/src/hostlist.h +2 -2
- package/deps/lcb/src/http/http-priv.h +2 -2
- package/deps/lcb/src/http/http.cc +5 -2
- package/deps/lcb/src/instance.cc +20 -11
- package/deps/lcb/src/internal.h +9 -0
- package/deps/lcb/src/lcbio/connect.cc +14 -2
- package/deps/lcb/src/lcbio/connect.h +2 -2
- package/deps/lcb/src/lcbio/ctx.cc +4 -2
- package/deps/lcb/src/lcbio/ioutils.cc +9 -10
- package/deps/lcb/src/lcbio/manager.cc +1 -1
- package/deps/lcb/src/mcserver/mcserver.cc +9 -6
- package/deps/lcb/src/mcserver/negotiate.cc +39 -17
- package/deps/lcb/src/n1ql/ixmgmt.cc +1 -2
- package/deps/lcb/src/n1ql/query_handle.cc +41 -19
- package/deps/lcb/src/n1ql/query_handle.hh +28 -1
- package/deps/lcb/src/operations/counter.cc +18 -5
- package/deps/lcb/src/operations/exists.cc +25 -4
- package/deps/lcb/src/operations/get.cc +39 -19
- package/deps/lcb/src/operations/get_replica.cc +28 -8
- package/deps/lcb/src/operations/observe.cc +1 -1
- package/deps/lcb/src/operations/ping.cc +8 -8
- package/deps/lcb/src/operations/pktfwd.cc +2 -1
- package/deps/lcb/src/operations/remove.cc +39 -22
- package/deps/lcb/src/operations/store.cc +18 -5
- package/deps/lcb/src/operations/subdoc.cc +18 -6
- package/deps/lcb/src/operations/touch.cc +34 -16
- package/deps/lcb/src/operations/unlock.cc +24 -5
- package/deps/lcb/src/packetutils.h +3 -2
- package/deps/lcb/src/retryq.cc +24 -5
- package/deps/lcb/src/search/search.cc +1 -0
- package/deps/lcb/src/search/search_handle.cc +30 -8
- package/deps/lcb/src/search/search_handle.hh +29 -0
- package/deps/lcb/src/settings.cc +1 -1
- package/deps/lcb/src/ssl/ssl_common.c +6 -7
- package/deps/lcb/src/tracing/span.cc +47 -14
- package/deps/lcb/src/tracing/tracer.cc +11 -2
- package/deps/lcb/src/tracing/tracing-internal.h +105 -93
- package/deps/lcb/src/utilities.cc +43 -0
- package/deps/lcb/src/utilities.h +53 -0
- package/deps/lcb/src/vbucket/vbucket.c +34 -33
- package/deps/lcb/src/views/view_handle.cc +13 -5
- package/deps/lcb/src/views/view_handle.hh +29 -0
- package/deps/lcb/tests/CMakeLists.txt +21 -0
- package/deps/lcb/tests/basic/t_ctlcodes.cc +24 -3
- package/deps/lcb/tests/basic/t_jsparse.cc +8 -0
- package/deps/lcb/tests/basic/t_n1qlstrings.cc +73 -0
- package/deps/lcb/tests/iotests/mock-environment.cc +30 -1
- package/deps/lcb/tests/iotests/mock-environment.h +49 -0
- package/deps/lcb/tests/iotests/mock-unit-test.cc +104 -6
- package/deps/lcb/tests/iotests/mock-unit-test.h +34 -0
- package/deps/lcb/tests/iotests/t_collections.cc +1 -1
- package/deps/lcb/tests/iotests/t_confmon.cc +4 -2
- package/deps/lcb/tests/iotests/t_get.cc +109 -7
- package/deps/lcb/tests/iotests/t_http.cc +9 -4
- package/deps/lcb/tests/iotests/t_lock.cc +18 -0
- package/deps/lcb/tests/iotests/t_mutate.cc +157 -63
- package/deps/lcb/tests/iotests/t_n1ql.cc +330 -33
- package/deps/lcb/tests/iotests/t_views.cc +1 -0
- package/deps/lcb/tests/iotests/testutil.cc +168 -0
- package/deps/lcb/tests/iotests/testutil.h +116 -0
- package/deps/lcb/tests/mocksupport/procutil.c +32 -28
- package/deps/lcb/tests/mocksupport/server.c +0 -1
- package/deps/lcb/tests/mocksupport/timeout.c +2 -2
- package/deps/lcb/tools/cbc.cc +7 -0
- package/dist/analyticsindexmanager.js +512 -524
- package/dist/binding.d.ts +3 -0
- package/dist/bindingutilities.js +4 -0
- package/dist/bucket.js +1 -1
- package/dist/bucketmanager.d.ts +31 -1
- package/dist/bucketmanager.js +194 -186
- package/dist/cluster.d.ts +7 -0
- package/dist/cluster.js +48 -38
- package/dist/collection.js +11 -17
- package/dist/collectionmanager.js +181 -197
- package/dist/connection.d.ts +3 -1
- package/dist/connection.js +27 -16
- package/dist/couchbase.d.ts +1 -0
- package/dist/couchbase.js +3 -13
- package/dist/datastructures.js +239 -310
- package/dist/diagnosticsexecutor.js +70 -85
- package/dist/errors.d.ts +70 -0
- package/dist/errors.js +96 -2
- package/dist/eventingfunctionmanager.d.ts +804 -0
- package/dist/eventingfunctionmanager.js +993 -0
- package/dist/httpexecutor.d.ts +2 -1
- package/dist/httpexecutor.js +30 -37
- package/dist/queryindexmanager.js +240 -266
- package/dist/scope.js +10 -4
- package/dist/sdspecs.d.ts +1 -1
- package/dist/searchexecutor.js +3 -0
- package/dist/searchindexmanager.js +240 -271
- package/dist/searchquery.d.ts +17 -0
- package/dist/searchquery.js +22 -1
- package/dist/searchtypes.d.ts +7 -2
- package/dist/searchtypes.js +2 -2
- package/dist/usermanager.js +251 -264
- package/dist/utilities.d.ts +2 -0
- package/dist/utilities.js +7 -2
- package/dist/viewexecutor.js +1 -1
- package/dist/viewindexmanager.js +131 -150
- package/package.json +1 -1
- package/src/addondata.cpp +58 -0
- package/src/addondata.h +40 -0
- package/src/binding.cpp +3 -1
- package/src/cas.h +2 -2
- package/src/connection.cpp +25 -178
- package/src/connection.h +8 -65
- package/src/connection_ops.cpp +57 -34
- package/src/constants.cpp +3 -0
- package/src/instance.cpp +235 -0
- package/src/instance.h +102 -0
- package/src/{connection_callbacks.cpp → instance_callbacks.cpp} +34 -34
- package/src/logger.cpp +11 -1
- package/src/logger.h +3 -0
- package/src/metrics.cpp +10 -0
- package/src/metrics.h +3 -0
- package/src/mutationtoken.h +2 -2
- package/src/opbuilder.h +13 -15
- package/src/respreader.cpp +1 -0
- package/src/respreader.h +6 -4
- package/src/tracespan.h +11 -11
- package/src/tracing.cpp +11 -0
- package/src/tracing.h +3 -0
- package/src/valueparser.h +5 -0
- package/deps/lcb/example/observe/durability.c +0 -110
@@ -1,368 +1,366 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
},
|
6
|
-
|
7
|
-
'target_defaults': {
|
8
|
-
'default_configuration': 'Debug',
|
9
|
-
'configurations': {
|
10
|
-
'Debug': {
|
11
|
-
'defines': [ 'DEBUG', '_DEBUG' ],
|
12
|
-
'msvs_settings': {
|
13
|
-
'VCCLCompilerTool': {
|
14
|
-
'RuntimeLibrary': 1, # static debug
|
15
|
-
},
|
16
|
-
},
|
17
|
-
},
|
18
|
-
'Release': {
|
19
|
-
'defines': [ 'NDEBUG' ],
|
20
|
-
'msvs_settings': {
|
21
|
-
'VCCLCompilerTool': {
|
22
|
-
'RuntimeLibrary': 0, # static release
|
23
|
-
},
|
24
|
-
},
|
25
|
-
}
|
26
|
-
},
|
27
|
-
'msvs_settings': {
|
28
|
-
'VCLinkerTool': {
|
29
|
-
'GenerateDebugInformation': 'true',
|
30
|
-
},
|
2
|
+
'variables': {
|
3
|
+
'target_arch%': 'ia32', # default for node v0.6.x
|
4
|
+
'node_major_version': '<!(node -e "console.log(process.versions.node.split(\'.\')[0])")'
|
31
5
|
},
|
32
6
|
|
33
|
-
'
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
7
|
+
'target_defaults': {
|
8
|
+
'default_configuration': 'Debug',
|
9
|
+
'configurations': {
|
10
|
+
'Debug': {
|
11
|
+
'defines': ['DEBUG', '_DEBUG'],
|
12
|
+
'msvs_settings': {
|
13
|
+
'VCCLCompilerTool': {
|
14
|
+
'RuntimeLibrary': 1, # static debug
|
15
|
+
},
|
16
|
+
},
|
17
|
+
},
|
18
|
+
'Release': {
|
19
|
+
'defines': ['NDEBUG'],
|
20
|
+
'msvs_settings': {
|
21
|
+
'VCCLCompilerTool': {
|
22
|
+
'RuntimeLibrary': 0, # static release
|
23
|
+
},
|
24
|
+
},
|
25
|
+
}
|
26
|
+
},
|
39
27
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
'contrib/HdrHistogram_c/src',
|
47
|
-
'gyp_config/common',
|
48
|
-
'gyp_config/<(OS)/<(target_arch)'
|
49
|
-
],
|
28
|
+
'defines': [
|
29
|
+
'LIBCOUCHBASE_INTERNAL=1',
|
30
|
+
'LCB_STATIC_SNAPPY=1',
|
31
|
+
'LCB_LIBDIR=""',
|
32
|
+
'LCB_TRACING'
|
33
|
+
],
|
50
34
|
|
51
|
-
'conditions': [
|
52
|
-
['OS!="win"', {
|
53
|
-
"link_settings": {
|
54
|
-
"libraries": [
|
55
|
-
"-lresolv"
|
56
|
-
]
|
57
|
-
},
|
58
|
-
}],
|
59
|
-
['OS=="win"', {
|
60
35
|
'include_dirs': [
|
61
|
-
|
62
|
-
|
63
|
-
|
36
|
+
'include',
|
37
|
+
'src',
|
38
|
+
'contrib',
|
39
|
+
'contrib/cbsasl/include',
|
40
|
+
'contrib/snappy',
|
41
|
+
'contrib/HdrHistogram_c/src',
|
42
|
+
'gyp_config/common',
|
43
|
+
'gyp_config/<(OS)/<(target_arch)'
|
64
44
|
],
|
65
|
-
"link_settings": {
|
66
|
-
"libraries": [
|
67
|
-
"-lws2_32.lib",
|
68
|
-
"-ldnsapi.lib"
|
69
|
-
]
|
70
|
-
}
|
71
|
-
}],
|
72
|
-
]
|
73
|
-
},
|
74
45
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
}]
|
98
|
-
]
|
46
|
+
'conditions': [
|
47
|
+
['OS!="win"', {
|
48
|
+
"link_settings": {
|
49
|
+
"libraries": [
|
50
|
+
"-lresolv"
|
51
|
+
]
|
52
|
+
},
|
53
|
+
}],
|
54
|
+
['OS=="win"', {
|
55
|
+
'include_dirs': [
|
56
|
+
'<(node_root_dir)/deps/openssl/openssl/include',
|
57
|
+
'./',
|
58
|
+
'contrib/win32-defs'
|
59
|
+
],
|
60
|
+
"link_settings": {
|
61
|
+
"libraries": [
|
62
|
+
"-lws2_32.lib",
|
63
|
+
"-ldnsapi.lib"
|
64
|
+
]
|
65
|
+
}
|
66
|
+
}],
|
67
|
+
]
|
99
68
|
},
|
100
69
|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
70
|
+
'targets': [
|
71
|
+
# libcbsasl
|
72
|
+
{
|
73
|
+
'target_name': 'cbsasl',
|
74
|
+
'product_prefix': 'lib',
|
75
|
+
'type': 'static_library',
|
76
|
+
'defines': [
|
77
|
+
'BUILDING_CBSASL'
|
78
|
+
],
|
79
|
+
'sources': [
|
80
|
+
'contrib/cbsasl/src/client.c',
|
81
|
+
'contrib/cbsasl/src/common.c',
|
82
|
+
'contrib/cbsasl/src/hash.c',
|
83
|
+
'contrib/cbsasl/src/cram-md5/hmac.c',
|
84
|
+
'contrib/cbsasl/src/cram-md5/md5.c',
|
85
|
+
'contrib/cbsasl/src/scram-sha/scram_utils.cc'
|
86
|
+
],
|
87
|
+
'conditions': [
|
88
|
+
['OS=="win" and node_major_version<6', {
|
89
|
+
'defines': [
|
90
|
+
'LCB_NO_SSL'
|
91
|
+
]
|
92
|
+
}]
|
93
|
+
]
|
94
|
+
},
|
110
95
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
'contrib/http_parser/http_parser.c'
|
121
|
-
]
|
122
|
-
},
|
96
|
+
# libcjson
|
97
|
+
{
|
98
|
+
'target_name': 'cjson',
|
99
|
+
'product_prefix': 'lib',
|
100
|
+
'type': 'static_library',
|
101
|
+
'sources': [
|
102
|
+
'contrib/cJSON/cJSON.c'
|
103
|
+
]
|
104
|
+
},
|
123
105
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
106
|
+
# libhttpparser
|
107
|
+
{
|
108
|
+
'target_name': 'httpparser',
|
109
|
+
'product_prefix': 'lib',
|
110
|
+
'type': 'static_library',
|
111
|
+
'include_dirs': [
|
112
|
+
'./'
|
113
|
+
],
|
114
|
+
'sources': [
|
115
|
+
'contrib/http_parser/http_parser.c'
|
116
|
+
]
|
117
|
+
},
|
133
118
|
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
}
|
153
|
-
},
|
119
|
+
# libjsoncpp
|
120
|
+
{
|
121
|
+
'target_name': 'jsoncpp',
|
122
|
+
'product_prefix': 'lib',
|
123
|
+
'type': 'static_library',
|
124
|
+
'xcode_settings': {
|
125
|
+
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
|
126
|
+
},
|
127
|
+
'cflags!': [
|
128
|
+
'-fno-exceptions'
|
129
|
+
],
|
130
|
+
'cflags_cc!': [
|
131
|
+
'-fno-exceptions'
|
132
|
+
],
|
133
|
+
'sources': [
|
134
|
+
'contrib/lcb-jsoncpp/lcb-jsoncpp.cpp'
|
135
|
+
],
|
136
|
+
},
|
154
137
|
|
155
|
-
#
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
'contrib/HdrHistogram_c/src/hdr_time.c',
|
168
|
-
'contrib/HdrHistogram_c/src/hdr_writer_reader_phaser.c',
|
169
|
-
],
|
170
|
-
},
|
138
|
+
# libsnappy
|
139
|
+
{
|
140
|
+
'target_name': 'snappy',
|
141
|
+
'product_prefix': 'lib',
|
142
|
+
'type': 'static_library',
|
143
|
+
'sources': [
|
144
|
+
'contrib/snappy/snappy-c.cc',
|
145
|
+
'contrib/snappy/snappy-sinksource.cc',
|
146
|
+
'contrib/snappy/snappy-stubs-internal.cc',
|
147
|
+
'contrib/snappy/snappy.cc',
|
148
|
+
],
|
149
|
+
},
|
171
150
|
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
],
|
189
|
-
'cflags!': [
|
190
|
-
'-fno-exceptions'
|
191
|
-
],
|
192
|
-
'cflags_cc!': [
|
193
|
-
'-fno-exceptions'
|
194
|
-
],
|
195
|
-
'xcode_settings': {
|
196
|
-
'WARNING_CFLAGS': [
|
197
|
-
'-fno-strict-aliasing',
|
198
|
-
'-Wno-unused-function',
|
199
|
-
'-Wno-missing-braces',
|
200
|
-
'-Wno-missing-field-initializers'
|
201
|
-
],
|
202
|
-
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
|
203
|
-
},
|
204
|
-
'include_dirs': [
|
205
|
-
'./'
|
206
|
-
],
|
207
|
-
'sources': [
|
208
|
-
'src/analytics/analytics_handle.cc',
|
209
|
-
'src/analytics/analytics.cc',
|
210
|
-
'src/bucketconfig/bc_cccp.cc',
|
211
|
-
'src/bucketconfig/bc_file.cc',
|
212
|
-
'src/bucketconfig/bc_http.cc',
|
213
|
-
'src/bucketconfig/bc_static.cc',
|
214
|
-
'src/bucketconfig/confmon.cc',
|
215
|
-
'src/capi/cmd_analytics.cc',
|
216
|
-
'src/capi/cmd_query.cc',
|
217
|
-
'src/capi/cmd_search.cc',
|
218
|
-
'src/capi/cmd_view.cc',
|
219
|
-
'src/docreq/docreq.cc',
|
220
|
-
'src/http/http.cc',
|
221
|
-
'src/http/http_io.cc',
|
222
|
-
'src/jsparse/parser.cc',
|
223
|
-
'src/lcbht/lcbht.cc',
|
224
|
-
'src/lcbio/connect.cc',
|
225
|
-
'src/lcbio/ctx.cc',
|
226
|
-
'src/lcbio/iotable.c',
|
227
|
-
'src/lcbio/ioutils.cc',
|
228
|
-
'src/lcbio/manager.cc',
|
229
|
-
'src/lcbio/protoctx.cc',
|
230
|
-
'src/lcbio/timer.cc',
|
231
|
-
'src/metrics/caching_meter.cc',
|
232
|
-
'src/metrics/logging_meter.cc',
|
233
|
-
'src/metrics/metrics-internal.cc',
|
234
|
-
'src/metrics/metrics.cc',
|
235
|
-
'src/mc/compress.cc',
|
236
|
-
'src/mc/forward.c',
|
237
|
-
'src/mc/mcreq.c',
|
238
|
-
'src/mcserver/mcserver.cc',
|
239
|
-
'src/mcserver/negotiate.cc',
|
240
|
-
'src/n1ql/ixmgmt.cc',
|
241
|
-
'src/n1ql/n1ql-internal.cc',
|
242
|
-
'src/n1ql/n1ql.cc',
|
243
|
-
'src/n1ql/query_handle.cc',
|
244
|
-
'src/n1ql/query_utils.cc',
|
245
|
-
'src/netbuf/netbuf.c',
|
246
|
-
'src/operations/cbflush.cc',
|
247
|
-
'src/operations/counter.cc',
|
248
|
-
'src/operations/durability-seqno.cc',
|
249
|
-
'src/operations/durability.cc',
|
250
|
-
'src/operations/exists.cc',
|
251
|
-
'src/operations/get_replica.cc',
|
252
|
-
'src/operations/get.cc',
|
253
|
-
'src/operations/observe-seqno.cc',
|
254
|
-
'src/operations/observe.cc',
|
255
|
-
'src/operations/pktfwd.cc',
|
256
|
-
'src/operations/ping.cc',
|
257
|
-
'src/operations/remove.cc',
|
258
|
-
'src/operations/stats.cc',
|
259
|
-
'src/operations/store.cc',
|
260
|
-
'src/operations/subdoc.cc',
|
261
|
-
'src/operations/touch.cc',
|
262
|
-
'src/operations/unlock.cc',
|
263
|
-
'src/rdb/bigalloc.c',
|
264
|
-
'src/rdb/chunkalloc.c',
|
265
|
-
'src/rdb/libcalloc.c',
|
266
|
-
'src/rdb/rope.c',
|
267
|
-
'src/search/search_handle.cc',
|
268
|
-
'src/search/search.cc',
|
269
|
-
'src/strcodecs/base64.cc',
|
270
|
-
'src/tracing/span.cc',
|
271
|
-
'src/tracing/threshold_logging_tracer.cc',
|
272
|
-
'src/tracing/tracer.cc',
|
273
|
-
'src/vbucket/ketama.c',
|
274
|
-
'src/vbucket/vbucket.c',
|
275
|
-
'src/views/view_handle.cc',
|
276
|
-
'src/views/view.cc',
|
277
|
-
'src/auth.cc',
|
278
|
-
'src/bootstrap.cc',
|
279
|
-
'src/callbacks.c',
|
280
|
-
'src/cntl.cc',
|
281
|
-
'src/collections.cc',
|
282
|
-
'src/connspec.cc',
|
283
|
-
'src/crypto.cc',
|
284
|
-
'src/defer.cc',
|
285
|
-
'src/dns-srv.cc',
|
286
|
-
'src/dump.cc',
|
287
|
-
'src/errmap.cc',
|
288
|
-
'src/getconfig.cc',
|
289
|
-
'src/gethrtime.c',
|
290
|
-
'src/handler.cc',
|
291
|
-
'src/hdr_timings.c',
|
292
|
-
'src/hostlist.cc',
|
293
|
-
'src/instance.cc',
|
294
|
-
'src/iofactory.c',
|
295
|
-
'src/list.c',
|
296
|
-
'src/logging.c',
|
297
|
-
'src/newconfig.cc',
|
298
|
-
'src/nodeinfo.cc',
|
299
|
-
'src/iometrics.cc',
|
300
|
-
'src/retrychk.cc',
|
301
|
-
'src/retryq.cc',
|
302
|
-
'src/ringbuffer.c',
|
303
|
-
'src/rnd.cc',
|
304
|
-
'src/settings.cc',
|
305
|
-
# 'src/timings.c', we use hdr_timings.c
|
306
|
-
'src/utilities.cc',
|
307
|
-
'src/wait.cc',
|
151
|
+
# HdrHistogram_c
|
152
|
+
{
|
153
|
+
'target_name': 'HdrHistogram_c',
|
154
|
+
'product_prefix': 'lib',
|
155
|
+
'type': 'static_library',
|
156
|
+
'sources': [
|
157
|
+
'contrib/HdrHistogram_c/src/hdr_encoding.c',
|
158
|
+
'contrib/HdrHistogram_c/src/hdr_histogram_log_no_op.c',
|
159
|
+
'contrib/HdrHistogram_c/src/hdr_histogram_log.c',
|
160
|
+
'contrib/HdrHistogram_c/src/hdr_histogram.c',
|
161
|
+
'contrib/HdrHistogram_c/src/hdr_interval_recorder.c',
|
162
|
+
'contrib/HdrHistogram_c/src/hdr_thread.c',
|
163
|
+
'contrib/HdrHistogram_c/src/hdr_time.c',
|
164
|
+
'contrib/HdrHistogram_c/src/hdr_writer_reader_phaser.c',
|
165
|
+
],
|
166
|
+
},
|
308
167
|
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
'plugins/io/iocp/iocp_loop.c',
|
344
|
-
'plugins/io/iocp/iocp_timer.c',
|
345
|
-
'plugins/io/iocp/iocp_util.c'
|
346
|
-
],
|
347
|
-
'direct_dependent_settings': {
|
168
|
+
# libcouchbase
|
169
|
+
{
|
170
|
+
'target_name': 'couchbase',
|
171
|
+
'product_prefix': 'lib',
|
172
|
+
'type': 'static_library',
|
173
|
+
'cflags': [
|
174
|
+
'-fno-strict-aliasing',
|
175
|
+
'-Wno-unused-function',
|
176
|
+
'-Wno-missing-braces',
|
177
|
+
'-Wno-missing-field-initializers',
|
178
|
+
'-Wno-sign-compare',
|
179
|
+
],
|
180
|
+
'cflags_c': [
|
181
|
+
'-std=c99'
|
182
|
+
],
|
183
|
+
'xcode_settings': {
|
184
|
+
'WARNING_CFLAGS': [
|
185
|
+
'-fno-strict-aliasing',
|
186
|
+
'-Wno-unused-function',
|
187
|
+
'-Wno-missing-braces',
|
188
|
+
'-Wno-missing-field-initializers',
|
189
|
+
'-Wno-sign-compare'
|
190
|
+
],
|
191
|
+
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
|
192
|
+
},
|
193
|
+
'cflags!': [
|
194
|
+
'-fno-exceptions'
|
195
|
+
],
|
196
|
+
'cflags_cc!': [
|
197
|
+
'-fno-exceptions'
|
198
|
+
],
|
199
|
+
'defines': [
|
200
|
+
'CBSASL_STATIC'
|
201
|
+
],
|
348
202
|
'include_dirs': [
|
349
|
-
|
203
|
+
'./'
|
350
204
|
],
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
205
|
+
'sources': [
|
206
|
+
'src/analytics/analytics_handle.cc',
|
207
|
+
'src/analytics/analytics.cc',
|
208
|
+
'src/bucketconfig/bc_cccp.cc',
|
209
|
+
'src/bucketconfig/bc_file.cc',
|
210
|
+
'src/bucketconfig/bc_http.cc',
|
211
|
+
'src/bucketconfig/bc_static.cc',
|
212
|
+
'src/bucketconfig/confmon.cc',
|
213
|
+
'src/capi/cmd_analytics.cc',
|
214
|
+
'src/capi/cmd_query.cc',
|
215
|
+
'src/capi/cmd_search.cc',
|
216
|
+
'src/capi/cmd_view.cc',
|
217
|
+
'src/docreq/docreq.cc',
|
218
|
+
'src/http/http.cc',
|
219
|
+
'src/http/http_io.cc',
|
220
|
+
'src/jsparse/parser.cc',
|
221
|
+
'src/lcbht/lcbht.cc',
|
222
|
+
'src/lcbio/connect.cc',
|
223
|
+
'src/lcbio/ctx.cc',
|
224
|
+
'src/lcbio/iotable.c',
|
225
|
+
'src/lcbio/ioutils.cc',
|
226
|
+
'src/lcbio/manager.cc',
|
227
|
+
'src/lcbio/protoctx.cc',
|
228
|
+
'src/lcbio/timer.cc',
|
229
|
+
'src/metrics/caching_meter.cc',
|
230
|
+
'src/metrics/logging_meter.cc',
|
231
|
+
'src/metrics/metrics-internal.cc',
|
232
|
+
'src/metrics/metrics.cc',
|
233
|
+
'src/mc/compress.cc',
|
234
|
+
'src/mc/forward.c',
|
235
|
+
'src/mc/mcreq.c',
|
236
|
+
'src/mcserver/mcserver.cc',
|
237
|
+
'src/mcserver/negotiate.cc',
|
238
|
+
'src/n1ql/ixmgmt.cc',
|
239
|
+
'src/n1ql/n1ql-internal.cc',
|
240
|
+
'src/n1ql/n1ql.cc',
|
241
|
+
'src/n1ql/query_handle.cc',
|
242
|
+
'src/n1ql/query_utils.cc',
|
243
|
+
'src/netbuf/netbuf.c',
|
244
|
+
'src/operations/cbflush.cc',
|
245
|
+
'src/operations/counter.cc',
|
246
|
+
'src/operations/durability-seqno.cc',
|
247
|
+
'src/operations/durability.cc',
|
248
|
+
'src/operations/exists.cc',
|
249
|
+
'src/operations/get_replica.cc',
|
250
|
+
'src/operations/get.cc',
|
251
|
+
'src/operations/observe-seqno.cc',
|
252
|
+
'src/operations/observe.cc',
|
253
|
+
'src/operations/pktfwd.cc',
|
254
|
+
'src/operations/ping.cc',
|
255
|
+
'src/operations/remove.cc',
|
256
|
+
'src/operations/stats.cc',
|
257
|
+
'src/operations/store.cc',
|
258
|
+
'src/operations/subdoc.cc',
|
259
|
+
'src/operations/touch.cc',
|
260
|
+
'src/operations/unlock.cc',
|
261
|
+
'src/rdb/bigalloc.c',
|
262
|
+
'src/rdb/chunkalloc.c',
|
263
|
+
'src/rdb/libcalloc.c',
|
264
|
+
'src/rdb/rope.c',
|
265
|
+
'src/search/search_handle.cc',
|
266
|
+
'src/search/search.cc',
|
267
|
+
'src/strcodecs/base64.cc',
|
268
|
+
'src/tracing/span.cc',
|
269
|
+
'src/tracing/threshold_logging_tracer.cc',
|
270
|
+
'src/tracing/tracer.cc',
|
271
|
+
'src/vbucket/ketama.c',
|
272
|
+
'src/vbucket/vbucket.c',
|
273
|
+
'src/views/view_handle.cc',
|
274
|
+
'src/views/view.cc',
|
275
|
+
'src/auth.cc',
|
276
|
+
'src/bootstrap.cc',
|
277
|
+
'src/callbacks.c',
|
278
|
+
'src/cntl.cc',
|
279
|
+
'src/collections.cc',
|
280
|
+
'src/connspec.cc',
|
281
|
+
'src/crypto.cc',
|
282
|
+
'src/defer.cc',
|
283
|
+
'src/dns-srv.cc',
|
284
|
+
'src/dump.cc',
|
285
|
+
'src/errmap.cc',
|
286
|
+
'src/getconfig.cc',
|
287
|
+
'src/gethrtime.c',
|
288
|
+
'src/handler.cc',
|
289
|
+
'src/hdr_timings.c',
|
290
|
+
'src/hostlist.cc',
|
291
|
+
'src/instance.cc',
|
292
|
+
'src/iofactory.c',
|
293
|
+
'src/list.c',
|
294
|
+
'src/logging.c',
|
295
|
+
'src/newconfig.cc',
|
296
|
+
'src/nodeinfo.cc',
|
297
|
+
'src/iometrics.cc',
|
298
|
+
'src/retrychk.cc',
|
299
|
+
'src/retryq.cc',
|
300
|
+
'src/ringbuffer.c',
|
301
|
+
'src/rnd.cc',
|
302
|
+
'src/settings.cc',
|
303
|
+
# 'src/timings.c', we use hdr_timings.c
|
304
|
+
'src/utilities.cc',
|
305
|
+
'src/wait.cc',
|
306
|
+
|
307
|
+
'plugins/io/select/plugin-select.c'
|
308
|
+
],
|
309
|
+
'dependencies': [
|
310
|
+
'httpparser',
|
311
|
+
'cjson',
|
312
|
+
'cbsasl',
|
313
|
+
'snappy',
|
314
|
+
'jsoncpp',
|
315
|
+
'HdrHistogram_c'
|
316
|
+
],
|
317
|
+
'copies': [{
|
318
|
+
'files': ['plugins/io/libuv/libuv_io_opts.h'],
|
319
|
+
'destination': 'include/libcouchbase/',
|
320
|
+
}, {
|
321
|
+
'files': [
|
322
|
+
'plugins/io/libuv/plugin-libuv.c',
|
323
|
+
'plugins/io/libuv/plugin-internal.h',
|
324
|
+
'plugins/io/libuv/libuv_compat.h'
|
325
|
+
],
|
326
|
+
'destination': 'include/libcouchbase/plugins/io/libuv/'
|
327
|
+
}],
|
328
|
+
'direct_dependent_settings': {
|
329
|
+
'include_dirs': [
|
330
|
+
'include',
|
331
|
+
'./',
|
332
|
+
'gyp_config/common',
|
333
|
+
'gyp_config/<(OS)/<(target_arch)'
|
334
|
+
],
|
335
|
+
},
|
336
|
+
'conditions': [
|
337
|
+
['OS=="win"', {
|
338
|
+
'sources': [
|
339
|
+
'plugins/io/iocp/iocp_iops.c',
|
340
|
+
'plugins/io/iocp/iocp_iops.h',
|
341
|
+
'plugins/io/iocp/iocp_loop.c',
|
342
|
+
'plugins/io/iocp/iocp_timer.c',
|
343
|
+
'plugins/io/iocp/iocp_util.c'
|
344
|
+
],
|
345
|
+
'direct_dependent_settings': {
|
346
|
+
'include_dirs': [
|
347
|
+
'plugins/io/libuv'
|
348
|
+
],
|
349
|
+
},
|
350
|
+
}],
|
351
|
+
['OS!="win" or node_major_version>=6', {
|
352
|
+
'sources': [
|
353
|
+
'src/ssl/ssl_c.c',
|
354
|
+
'src/ssl/ssl_common.c',
|
355
|
+
'src/ssl/ssl_e.c',
|
356
|
+
]
|
357
|
+
}],
|
358
|
+
['OS=="win" and node_major_version<6', {
|
359
|
+
'defines': [
|
360
|
+
'LCB_NO_SSL'
|
361
|
+
]
|
362
|
+
}]
|
363
|
+
]
|
364
|
+
}
|
365
|
+
]
|
368
366
|
}
|