Git Product home page Git Product logo

Comments (5)

vgfree avatar vgfree commented on August 21, 2024

You can see new ticketd at https://github.com/vgfree/EasyRaft/tree/master/example/ticketd

from raft.

calio avatar calio commented on August 21, 2024

In raft_apply_entry function there is no check to verify if me->cb.log_get_node_id is set or not. So I guess this call back is now required. I don't see log_get_node_id get set anywhere in your version of ticketd, can you verify?

from raft.

vgfree avatar vgfree commented on August 21, 2024

It's a bug. Thanks!

from raft.

q96456 avatar q96456 commented on August 21, 2024

how to use log_get_node_id. I can'f find the function in https://github.com/vgfree/EasyRaft/tree/master/example/ticketd now.

from raft.

vgfree avatar vgfree commented on August 21, 2024

It's update.
like this:

int __raft_log_get_node_id(
raft_server_t *raft,
void *user_data,
raft_entry_t *entry,
raft_index_t entry_idx
)
{
entry_cfg_change_t *change = (entry_cfg_change_t *)entry->data.buf;
return change->node_id;
}

from raft.

Related Issues (20)

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.