mirror of https://github.com/milvus-io/milvus.git
[skip ci] Check the syntax of meta_snapshot md (#13480)
Signed-off-by: min.tian <min.tian.cn@gmail.com>pull/13484/head
parent
27a0fab3b8
commit
1853ed6a00
|
@ -104,6 +104,6 @@ You might be curious about the parameter `additions` of `MultiSave` and `MultiSa
|
|||
|
||||
`additions` is an array of `func(ts typeutil.Timestamp) (string, string, error)`. So it's a function, receiving `typeutil.Timestamp` as an input, and returns two `string` which is `key-value` pair. If `error` is `nil` in the return value, `metaSnapShot` would write this `key-value` pair into `etcd`.
|
||||
|
||||
Refer to the document of `CreateCollection`, a timestamp is created for `Collection`, which is the timestamp when the `Collection`'s meta have been written into `etcd`, not the timestamp when `RootCoord` receives the request. So before writing the `Collection`'s meta into `etcd`, `metaSnapshot` would allocate a timestamp, and call all the `additions`. This would make sure the timestamp created for the `Collection` is correct.
|
||||
Referring to the document of `CreateCollection`, a timestamp is created for `Collection`, which is the timestamp when the `Collection`'s meta have been written into `etcd`, not the timestamp when `RootCoord` receives the request. So before writing the `Collection`'s meta into `etcd`, `metaSnapshot` would allocate a timestamp, and call all the `additions`. This would make sure the timestamp created for the `Collection` is correct.
|
||||
|
||||

|
||||
|
|
Loading…
Reference in New Issue