Skip to content

Instantly share code, notes, and snippets.

View jimwwalker's full-sized avatar
🎯
Focusing

Jim Walker jimwwalker

🎯
Focusing
  • Couchbase
  • Manchester, UK
View GitHub Profile

#DCP Object Ownership

                             ║                                                           │                          
                             ║                                                                                      
                             ║                                                           │                          
                             ║                                                                                      
                             ║                                                           │                          
                             ║                                                                                      
                             ║                                                           │                          

System Event (0x5f)

Tells the consumer that the message contains a system event. The system event message encodes event information that relates to the user's data, but is not necessarily something they directly control.

A system event always encodes in the extras the seqno of the event and an type identifier for the event, the following events are defined (values shown).

  • 0 - A collection has been created
#include <type_traits>
#include <stdio.h>
#include <string>
#include <cstdint>
class Jim {
public:
bool add(std::string str, bool stuff) {
printf("MADE IT %s\n", str.c_str());
return true;
static enum test_result test_set_meta_lww(ENGINE_HANDLE *h,
ENGINE_HANDLE_V1 *h1) {
// put some random metadata
ItemMetaData itemMeta;
itemMeta.revSeqno = 10;
itemMeta.exptime = 0;
itemMeta.flags = 0xdeadbeef;
std::string key("key");