Giter Site home page Giter Site logo

Comments (1)

momo54 avatar momo54 commented on August 29, 2024

Hmm, i updated the wikipage and wrote: "it should looks like:"

LOCK TABLES p2p_params WRITE;
/*!40000 ALTER TABLE p2p_params DISABLE KEYS /;
INSERT INTO p2p_params (value, server_id) VALUES (0, '0');
/!40000 ALTER TABLE p2p_params ENABLE KEYS */;
UNLOCK TABLES;

This table contains the server id and a counter. In DSMW, each server has a unique ID and increment a counter each time an operation is produced. It ensures that each operation in DSMW is globally unique.

The dump.sql simulates a fresh install of DSMW and (0,0) indicates an uninitialized DSMW instance. When starting, DSMW will choose one for each instance. If not, we will obtain 3 servers with same id and get strange behavior during tests.

from dsmw.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.