"h"是什么?在oplog.rs文件中代表什么? [英] What does the "h" in oplog.rs document stand for?

查看:167
本文介绍了"h"是什么?在oplog.rs文件中代表什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如此处所示:

{
    "ts" : Timestamp(1374832131, 1),
    "h" : NumberLong("-1336944105039123379"),
    "v" : 2,
    "op" : "i",
    "ns" : "users.users",
    "o" : {
            "_id" : ObjectId("51f24603d98de3716b1db672")
    }
}

谢谢

推荐答案

  1. ts :此操作发生的时间.
  2. h :此操作的唯一ID.每个操作在此字段中将具有不同的值.
  3. op :应该应用于从站的写操作. n表示没有操作,这只是一条提示性消​​息.
  4. ns :受此操作影响的数据库和集合.由于这是空操作,因此此字段保留为空白.
  5. o :代表操作的实际文档.由于这是无操作操作,因此该字段几乎没有用.
  1. ts: the time this operation occurred.
  2. h: a unique ID for this operation. Each operation will have a different value in this field.
  3. op: the write operation that should be applied to the slave. n indicates a no-op, this is just an informational message.
  4. ns: the database and collection affected by this operation. Since this is a no-op, this field is left blank.
  5. o: the actual document representing the op. Since this is a no-op, this field is pretty useless.

参考:复制内部信息

这篇关于"h"是什么?在oplog.rs文件中代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆