Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
deba9645
M
milvus
项目概览
milvus
/
milvus
11 个月 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
deba9645
编写于
4月 12, 2021
作者:
G
godchen
提交者:
yefu.chen
4月 12, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change name of kvBase
Signed-off-by:
N
godchen
<
qingxiang.chen@zilliz.com
>
上级
61edc53f
变更
20
显示空白变更内容
内联
并排
Showing
20 changed file
with
34 addition
and
34 deletion
+34
-34
internal/allocator/global_id.go
internal/allocator/global_id.go
+1
-1
internal/datanode/binlog_meta.go
internal/datanode/binlog_meta.go
+2
-2
internal/datanode/flow_graph_dd_node.go
internal/datanode/flow_graph_dd_node.go
+2
-2
internal/datanode/flow_graph_insert_buffer_node.go
internal/datanode/flow_graph_insert_buffer_node.go
+2
-2
internal/dataservice/meta.go
internal/dataservice/meta.go
+2
-2
internal/indexnode/indexnode.go
internal/indexnode/indexnode.go
+1
-1
internal/indexnode/task.go
internal/indexnode/task.go
+1
-1
internal/indexnode/task_scheduler.go
internal/indexnode/task_scheduler.go
+2
-2
internal/indexservice/indexservice.go
internal/indexservice/indexservice.go
+1
-1
internal/indexservice/meta_table.go
internal/indexservice/meta_table.go
+2
-2
internal/indexservice/task.go
internal/indexservice/task.go
+1
-1
internal/indexservice/task_scheduler.go
internal/indexservice/task_scheduler.go
+2
-2
internal/kv/kv.go
internal/kv/kv.go
+3
-3
internal/masterservice/meta_table.go
internal/masterservice/meta_table.go
+2
-2
internal/masterservice/meta_table_test.go
internal/masterservice/meta_table_test.go
+1
-1
internal/querynode/index_loader.go
internal/querynode/index_loader.go
+1
-1
internal/querynode/segment_loader.go
internal/querynode/segment_loader.go
+1
-1
internal/tso/global_allocator.go
internal/tso/global_allocator.go
+2
-2
internal/tso/tso.go
internal/tso/tso.go
+4
-4
internal/util/rocksmq/server/rocksmq/rocksmq_impl.go
internal/util/rocksmq/server/rocksmq/rocksmq_impl.go
+1
-1
未找到文件。
internal/allocator/global_id.go
浏览文件 @
deba9645
...
@@ -17,7 +17,7 @@ type GlobalIDAllocator struct {
...
@@ -17,7 +17,7 @@ type GlobalIDAllocator struct {
allocator
tso
.
Allocator
allocator
tso
.
Allocator
}
}
func
NewGlobalIDAllocator
(
key
string
,
base
kv
.
Txn
Base
)
*
GlobalIDAllocator
{
func
NewGlobalIDAllocator
(
key
string
,
base
kv
.
Txn
KV
)
*
GlobalIDAllocator
{
allocator
:=
tso
.
NewGlobalTSOAllocator
(
key
,
base
)
allocator
:=
tso
.
NewGlobalTSOAllocator
(
key
,
base
)
allocator
.
SetLimitMaxLogic
(
false
)
allocator
.
SetLimitMaxLogic
(
false
)
return
&
GlobalIDAllocator
{
return
&
GlobalIDAllocator
{
...
...
internal/datanode/binlog_meta.go
浏览文件 @
deba9645
...
@@ -14,11 +14,11 @@ import (
...
@@ -14,11 +14,11 @@ import (
// segment binlog meta key:
// segment binlog meta key:
// ${prefix}/${segmentID}/${fieldID}/${idx}
// ${prefix}/${segmentID}/${fieldID}/${idx}
type
binlogMeta
struct
{
type
binlogMeta
struct
{
client
kv
.
Txn
Base
// etcd kv
client
kv
.
Txn
KV
// etcd kv
idAllocator
allocatorInterface
idAllocator
allocatorInterface
}
}
func
NewBinlogMeta
(
kv
kv
.
Txn
Base
,
idAllocator
allocatorInterface
)
(
*
binlogMeta
,
error
)
{
func
NewBinlogMeta
(
kv
kv
.
Txn
KV
,
idAllocator
allocatorInterface
)
(
*
binlogMeta
,
error
)
{
mt
:=
&
binlogMeta
{
mt
:=
&
binlogMeta
{
client
:
kv
,
client
:
kv
,
idAllocator
:
idAllocator
,
idAllocator
:
idAllocator
,
...
...
internal/datanode/flow_graph_dd_node.go
浏览文件 @
deba9645
...
@@ -31,7 +31,7 @@ type ddNode struct {
...
@@ -31,7 +31,7 @@ type ddNode struct {
flushMap
*
sync
.
Map
flushMap
*
sync
.
Map
inFlushCh
<-
chan
*
flushMsg
inFlushCh
<-
chan
*
flushMsg
kv
kv
.
Base
kv
kv
.
Base
KV
replica
Replica
replica
Replica
binlogMeta
*
binlogMeta
binlogMeta
*
binlogMeta
}
}
...
@@ -194,7 +194,7 @@ The keys of the binlogs are generated as below:
...
@@ -194,7 +194,7 @@ The keys of the binlogs are generated as below:
*/
*/
func
flushTxn
(
ddlData
*
sync
.
Map
,
func
flushTxn
(
ddlData
*
sync
.
Map
,
kv
kv
.
Base
,
kv
kv
.
Base
KV
,
meta
*
binlogMeta
)
{
meta
*
binlogMeta
)
{
// generate binlog
// generate binlog
ddCodec
:=
&
storage
.
DataDefinitionCodec
{}
ddCodec
:=
&
storage
.
DataDefinitionCodec
{}
...
...
internal/datanode/flow_graph_insert_buffer_node.go
浏览文件 @
deba9645
...
@@ -42,7 +42,7 @@ type insertBufferNode struct {
...
@@ -42,7 +42,7 @@ type insertBufferNode struct {
flushMeta
*
binlogMeta
flushMeta
*
binlogMeta
flushMap
sync
.
Map
flushMap
sync
.
Map
minIOKV
kv
.
Base
minIOKV
kv
.
Base
KV
timeTickStream
msgstream
.
MsgStream
timeTickStream
msgstream
.
MsgStream
segmentStatisticsStream
msgstream
.
MsgStream
segmentStatisticsStream
msgstream
.
MsgStream
...
@@ -564,7 +564,7 @@ func (ibNode *insertBufferNode) Operate(in []flowgraph.Msg) []flowgraph.Msg {
...
@@ -564,7 +564,7 @@ func (ibNode *insertBufferNode) Operate(in []flowgraph.Msg) []flowgraph.Msg {
}
}
func
flushSegmentTxn
(
collMeta
*
etcdpb
.
CollectionMeta
,
segID
UniqueID
,
partitionID
UniqueID
,
collID
UniqueID
,
func
flushSegmentTxn
(
collMeta
*
etcdpb
.
CollectionMeta
,
segID
UniqueID
,
partitionID
UniqueID
,
collID
UniqueID
,
insertData
*
sync
.
Map
,
meta
*
binlogMeta
,
kv
kv
.
Base
,
finishCh
chan
<-
bool
)
{
insertData
*
sync
.
Map
,
meta
*
binlogMeta
,
kv
kv
.
Base
KV
,
finishCh
chan
<-
bool
)
{
clearFn
:=
func
(
isSuccess
bool
)
{
clearFn
:=
func
(
isSuccess
bool
)
{
finishCh
<-
isSuccess
finishCh
<-
isSuccess
...
...
internal/dataservice/meta.go
浏览文件 @
deba9645
...
@@ -25,7 +25,7 @@ type errCollectionNotFound struct {
...
@@ -25,7 +25,7 @@ type errCollectionNotFound struct {
}
}
type
meta
struct
{
type
meta
struct
{
sync
.
RWMutex
sync
.
RWMutex
client
kv
.
Txn
Base
// client of a reliable kv service, i.e. etcd client
client
kv
.
Txn
KV
// client of a reliable kv service, i.e. etcd client
collections
map
[
UniqueID
]
*
datapb
.
CollectionInfo
// collection id to collection info
collections
map
[
UniqueID
]
*
datapb
.
CollectionInfo
// collection id to collection info
segments
map
[
UniqueID
]
*
datapb
.
SegmentInfo
// segment id to segment info
segments
map
[
UniqueID
]
*
datapb
.
SegmentInfo
// segment id to segment info
}
}
...
@@ -46,7 +46,7 @@ func (err errCollectionNotFound) Error() string {
...
@@ -46,7 +46,7 @@ func (err errCollectionNotFound) Error() string {
return
fmt
.
Sprintf
(
"collection %d not found"
,
err
.
collectionID
)
return
fmt
.
Sprintf
(
"collection %d not found"
,
err
.
collectionID
)
}
}
func
newMeta
(
kv
kv
.
Txn
Base
)
(
*
meta
,
error
)
{
func
newMeta
(
kv
kv
.
Txn
KV
)
(
*
meta
,
error
)
{
mt
:=
&
meta
{
mt
:=
&
meta
{
client
:
kv
,
client
:
kv
,
collections
:
make
(
map
[
UniqueID
]
*
datapb
.
CollectionInfo
),
collections
:
make
(
map
[
UniqueID
]
*
datapb
.
CollectionInfo
),
...
...
internal/indexnode/indexnode.go
浏览文件 @
deba9645
...
@@ -36,7 +36,7 @@ type IndexNode struct {
...
@@ -36,7 +36,7 @@ type IndexNode struct {
sched
*
TaskScheduler
sched
*
TaskScheduler
kv
kv
.
Base
kv
kv
.
Base
KV
serviceClient
types
.
IndexService
// method factory
serviceClient
types
.
IndexService
// method factory
...
...
internal/indexnode/task.go
浏览文件 @
deba9645
...
@@ -71,7 +71,7 @@ func (bt *BaseTask) Notify(err error) {
...
@@ -71,7 +71,7 @@ func (bt *BaseTask) Notify(err error) {
type
IndexBuildTask
struct
{
type
IndexBuildTask
struct
{
BaseTask
BaseTask
index
Index
index
Index
kv
kv
.
Base
kv
kv
.
Base
KV
savePaths
[]
string
savePaths
[]
string
req
*
indexpb
.
BuildIndexRequest
req
*
indexpb
.
BuildIndexRequest
serviceClient
types
.
IndexService
serviceClient
types
.
IndexService
...
...
internal/indexnode/task_scheduler.go
浏览文件 @
deba9645
...
@@ -164,14 +164,14 @@ type TaskScheduler struct {
...
@@ -164,14 +164,14 @@ type TaskScheduler struct {
IndexBuildQueue
TaskQueue
IndexBuildQueue
TaskQueue
buildParallel
int
buildParallel
int
kv
kv
.
Base
kv
kv
.
Base
KV
wg
sync
.
WaitGroup
wg
sync
.
WaitGroup
ctx
context
.
Context
ctx
context
.
Context
cancel
context
.
CancelFunc
cancel
context
.
CancelFunc
}
}
func
NewTaskScheduler
(
ctx
context
.
Context
,
func
NewTaskScheduler
(
ctx
context
.
Context
,
kv
kv
.
Base
)
(
*
TaskScheduler
,
error
)
{
kv
kv
.
Base
KV
)
(
*
TaskScheduler
,
error
)
{
ctx1
,
cancel
:=
context
.
WithCancel
(
ctx
)
ctx1
,
cancel
:=
context
.
WithCancel
(
ctx
)
s
:=
&
TaskScheduler
{
s
:=
&
TaskScheduler
{
kv
:
kv
,
kv
:
kv
,
...
...
internal/indexservice/indexservice.go
浏览文件 @
deba9645
...
@@ -44,7 +44,7 @@ type IndexService struct {
...
@@ -44,7 +44,7 @@ type IndexService struct {
idAllocator
*
allocator
.
GlobalIDAllocator
idAllocator
*
allocator
.
GlobalIDAllocator
kv
kv
.
Base
kv
kv
.
Base
KV
metaTable
*
metaTable
metaTable
*
metaTable
...
...
internal/indexservice/meta_table.go
浏览文件 @
deba9645
...
@@ -26,13 +26,13 @@ import (
...
@@ -26,13 +26,13 @@ import (
)
)
type
metaTable
struct
{
type
metaTable
struct
{
client
kv
.
Txn
Base
// client of a reliable kv service, i.e. etcd client
client
kv
.
Txn
KV
// client of a reliable kv service, i.e. etcd client
indexBuildID2Meta
map
[
UniqueID
]
indexpb
.
IndexMeta
// index build id to index meta
indexBuildID2Meta
map
[
UniqueID
]
indexpb
.
IndexMeta
// index build id to index meta
lock
sync
.
RWMutex
lock
sync
.
RWMutex
}
}
func
NewMetaTable
(
kv
kv
.
Txn
Base
)
(
*
metaTable
,
error
)
{
func
NewMetaTable
(
kv
kv
.
Txn
KV
)
(
*
metaTable
,
error
)
{
mt
:=
&
metaTable
{
mt
:=
&
metaTable
{
client
:
kv
,
client
:
kv
,
lock
:
sync
.
RWMutex
{},
lock
:
sync
.
RWMutex
{},
...
...
internal/indexservice/task.go
浏览文件 @
deba9645
...
@@ -65,7 +65,7 @@ type IndexAddTask struct {
...
@@ -65,7 +65,7 @@ type IndexAddTask struct {
indexBuildID
UniqueID
indexBuildID
UniqueID
idAllocator
*
allocator
.
GlobalIDAllocator
idAllocator
*
allocator
.
GlobalIDAllocator
buildQueue
TaskQueue
buildQueue
TaskQueue
kv
kv
.
Base
kv
kv
.
Base
KV
builderClient
types
.
IndexNode
builderClient
types
.
IndexNode
nodeClients
*
PriorityQueue
nodeClients
*
PriorityQueue
buildClientNodeID
UniqueID
buildClientNodeID
UniqueID
...
...
internal/indexservice/task_scheduler.go
浏览文件 @
deba9645
...
@@ -177,7 +177,7 @@ type TaskScheduler struct {
...
@@ -177,7 +177,7 @@ type TaskScheduler struct {
idAllocator
*
allocator
.
GlobalIDAllocator
idAllocator
*
allocator
.
GlobalIDAllocator
metaTable
*
metaTable
metaTable
*
metaTable
kv
kv
.
Base
kv
kv
.
Base
KV
wg
sync
.
WaitGroup
wg
sync
.
WaitGroup
ctx
context
.
Context
ctx
context
.
Context
...
@@ -186,7 +186,7 @@ type TaskScheduler struct {
...
@@ -186,7 +186,7 @@ type TaskScheduler struct {
func
NewTaskScheduler
(
ctx
context
.
Context
,
func
NewTaskScheduler
(
ctx
context
.
Context
,
idAllocator
*
allocator
.
GlobalIDAllocator
,
idAllocator
*
allocator
.
GlobalIDAllocator
,
kv
kv
.
Base
,
kv
kv
.
Base
KV
,
table
*
metaTable
)
(
*
TaskScheduler
,
error
)
{
table
*
metaTable
)
(
*
TaskScheduler
,
error
)
{
ctx1
,
cancel
:=
context
.
WithCancel
(
ctx
)
ctx1
,
cancel
:=
context
.
WithCancel
(
ctx
)
s
:=
&
TaskScheduler
{
s
:=
&
TaskScheduler
{
...
...
internal/kv/kv.go
浏览文件 @
deba9645
package
kv
package
kv
type
Base
interface
{
type
Base
KV
interface
{
Load
(
key
string
)
(
string
,
error
)
Load
(
key
string
)
(
string
,
error
)
MultiLoad
(
keys
[]
string
)
([]
string
,
error
)
MultiLoad
(
keys
[]
string
)
([]
string
,
error
)
LoadWithPrefix
(
key
string
)
([]
string
,
[]
string
,
error
)
LoadWithPrefix
(
key
string
)
([]
string
,
[]
string
,
error
)
...
@@ -13,8 +13,8 @@ type Base interface {
...
@@ -13,8 +13,8 @@ type Base interface {
Close
()
Close
()
}
}
type
Txn
Base
interface
{
type
Txn
KV
interface
{
Base
Base
KV
MultiSaveAndRemove
(
saves
map
[
string
]
string
,
removals
[]
string
)
error
MultiSaveAndRemove
(
saves
map
[
string
]
string
,
removals
[]
string
)
error
MultiRemoveWithPrefix
(
keys
[]
string
)
error
MultiRemoveWithPrefix
(
keys
[]
string
)
error
MultiSaveAndRemoveWithPrefix
(
saves
map
[
string
]
string
,
removals
[]
string
)
error
MultiSaveAndRemoveWithPrefix
(
saves
map
[
string
]
string
,
removals
[]
string
)
error
...
...
internal/masterservice/meta_table.go
浏览文件 @
deba9645
...
@@ -32,7 +32,7 @@ const (
...
@@ -32,7 +32,7 @@ const (
)
)
type
metaTable
struct
{
type
metaTable
struct
{
client
kv
.
Txn
Base
// client of a reliable kv service, i.e. etcd client
client
kv
.
Txn
KV
// client of a reliable kv service, i.e. etcd client
tenantID2Meta
map
[
typeutil
.
UniqueID
]
pb
.
TenantMeta
// tenant id to tenant meta
tenantID2Meta
map
[
typeutil
.
UniqueID
]
pb
.
TenantMeta
// tenant id to tenant meta
proxyID2Meta
map
[
typeutil
.
UniqueID
]
pb
.
ProxyMeta
// proxy id to proxy meta
proxyID2Meta
map
[
typeutil
.
UniqueID
]
pb
.
ProxyMeta
// proxy id to proxy meta
collID2Meta
map
[
typeutil
.
UniqueID
]
pb
.
CollectionInfo
// collection_id -> meta
collID2Meta
map
[
typeutil
.
UniqueID
]
pb
.
CollectionInfo
// collection_id -> meta
...
@@ -50,7 +50,7 @@ type metaTable struct {
...
@@ -50,7 +50,7 @@ type metaTable struct {
ddLock
sync
.
RWMutex
ddLock
sync
.
RWMutex
}
}
func
NewMetaTable
(
kv
kv
.
Txn
Base
)
(
*
metaTable
,
error
)
{
func
NewMetaTable
(
kv
kv
.
Txn
KV
)
(
*
metaTable
,
error
)
{
mt
:=
&
metaTable
{
mt
:=
&
metaTable
{
client
:
kv
,
client
:
kv
,
tenantLock
:
sync
.
RWMutex
{},
tenantLock
:
sync
.
RWMutex
{},
...
...
internal/masterservice/meta_table_test.go
浏览文件 @
deba9645
...
@@ -19,7 +19,7 @@ import (
...
@@ -19,7 +19,7 @@ import (
)
)
type
mockTestKV
struct
{
type
mockTestKV
struct
{
kv
.
Txn
Base
kv
.
Txn
KV
loadWithPrefix
func
(
key
string
)
([]
string
,
[]
string
,
error
)
loadWithPrefix
func
(
key
string
)
([]
string
,
[]
string
,
error
)
save
func
(
key
,
value
string
)
error
save
func
(
key
,
value
string
)
error
...
...
internal/querynode/index_loader.go
浏览文件 @
deba9645
...
@@ -36,7 +36,7 @@ type indexLoader struct {
...
@@ -36,7 +36,7 @@ type indexLoader struct {
masterService
types
.
MasterService
masterService
types
.
MasterService
indexService
types
.
IndexService
indexService
types
.
IndexService
kv
kv
.
Base
// minio kv
kv
kv
.
Base
KV
// minio kv
}
}
func
(
loader
*
indexLoader
)
doLoadIndex
(
wg
*
sync
.
WaitGroup
)
{
func
(
loader
*
indexLoader
)
doLoadIndex
(
wg
*
sync
.
WaitGroup
)
{
...
...
internal/querynode/segment_loader.go
浏览文件 @
deba9645
...
@@ -24,7 +24,7 @@ type segmentLoader struct {
...
@@ -24,7 +24,7 @@ type segmentLoader struct {
dataService
types
.
DataService
dataService
types
.
DataService
kv
kv
.
Base
// minio kv
kv
kv
.
Base
KV
// minio kv
indexLoader
*
indexLoader
indexLoader
*
indexLoader
}
}
...
...
internal/tso/global_allocator.go
浏览文件 @
deba9645
...
@@ -51,10 +51,10 @@ type GlobalTSOAllocator struct {
...
@@ -51,10 +51,10 @@ type GlobalTSOAllocator struct {
}
}
// NewGlobalTSOAllocator creates a new global TSO allocator.
// NewGlobalTSOAllocator creates a new global TSO allocator.
func
NewGlobalTSOAllocator
(
key
string
,
kvBase
kv
.
TxnBase
)
*
GlobalTSOAllocator
{
func
NewGlobalTSOAllocator
(
key
string
,
txnKV
kv
.
TxnKV
)
*
GlobalTSOAllocator
{
return
&
GlobalTSOAllocator
{
return
&
GlobalTSOAllocator
{
tso
:
&
timestampOracle
{
tso
:
&
timestampOracle
{
kvBase
:
kvBase
,
txnKV
:
txnKV
,
saveInterval
:
3
*
time
.
Second
,
saveInterval
:
3
*
time
.
Second
,
maxResetTSGap
:
func
()
time
.
Duration
{
return
3
*
time
.
Second
},
maxResetTSGap
:
func
()
time
.
Duration
{
return
3
*
time
.
Second
},
key
:
key
,
key
:
key
,
...
...
internal/tso/tso.go
浏览文件 @
deba9645
...
@@ -47,7 +47,7 @@ type atomicObject struct {
...
@@ -47,7 +47,7 @@ type atomicObject struct {
// timestampOracle is used to maintain the logic of tso.
// timestampOracle is used to maintain the logic of tso.
type
timestampOracle
struct
{
type
timestampOracle
struct
{
key
string
key
string
kvBase
kv
.
TxnBase
txnKV
kv
.
TxnKV
// TODO: remove saveInterval
// TODO: remove saveInterval
saveInterval
time
.
Duration
saveInterval
time
.
Duration
...
@@ -58,7 +58,7 @@ type timestampOracle struct {
...
@@ -58,7 +58,7 @@ type timestampOracle struct {
}
}
func
(
t
*
timestampOracle
)
loadTimestamp
()
(
time
.
Time
,
error
)
{
func
(
t
*
timestampOracle
)
loadTimestamp
()
(
time
.
Time
,
error
)
{
strData
,
err
:=
t
.
kvBase
.
Load
(
t
.
key
)
strData
,
err
:=
t
.
txnKV
.
Load
(
t
.
key
)
var
binData
[]
byte
=
[]
byte
(
strData
)
var
binData
[]
byte
=
[]
byte
(
strData
)
...
@@ -75,7 +75,7 @@ func (t *timestampOracle) loadTimestamp() (time.Time, error) {
...
@@ -75,7 +75,7 @@ func (t *timestampOracle) loadTimestamp() (time.Time, error) {
// otherwise, update it.
// otherwise, update it.
func
(
t
*
timestampOracle
)
saveTimestamp
(
ts
time
.
Time
)
error
{
func
(
t
*
timestampOracle
)
saveTimestamp
(
ts
time
.
Time
)
error
{
data
:=
typeutil
.
Uint64ToBytes
(
uint64
(
ts
.
UnixNano
()))
data
:=
typeutil
.
Uint64ToBytes
(
uint64
(
ts
.
UnixNano
()))
err
:=
t
.
kvBase
.
Save
(
t
.
key
,
string
(
data
))
err
:=
t
.
txnKV
.
Save
(
t
.
key
,
string
(
data
))
if
err
!=
nil
{
if
err
!=
nil
{
return
errors
.
WithStack
(
err
)
return
errors
.
WithStack
(
err
)
}
}
...
...
internal/util/rocksmq/server/rocksmq/rocksmq_impl.go
浏览文件 @
deba9645
...
@@ -56,7 +56,7 @@ func combKey(channelName string, id UniqueID) (string, error) {
...
@@ -56,7 +56,7 @@ func combKey(channelName string, id UniqueID) (string, error) {
type
rocksmq
struct
{
type
rocksmq
struct
{
store
*
gorocksdb
.
DB
store
*
gorocksdb
.
DB
kv
kv
.
Base
kv
kv
.
Base
KV
idAllocator
allocator
.
GIDAllocator
idAllocator
allocator
.
GIDAllocator
channelMu
map
[
string
]
*
sync
.
Mutex
channelMu
map
[
string
]
*
sync
.
Mutex
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录