Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The intention of this page is to present experiments with non-CRUD data operations.

Aggregation Operation

Code Block
/**
* Aggregation Callback
*/
void
aggregateCallback(LogEntryHandle handle, uint8_t type,
                      void *cookie)
{
        const Object* obj = handle->userData<Object>();
        MasterServer *server = reinterpret_cast<MasterServer*>(cookie);

        int *p;
        p = (int*) obj->data;
        server->sum += (uint64_t)*p;
}

...