Revision 0c8299f1 include/LogDBRequest.h

View differences:

include/LogDBRequest.h
72 72
        return _sql;
73 73
    };
74 74

  
75
    int replicas()
76
    {
77
        return _replicas;
78
    }
79

  
80
    int to_commit()
81
    {
82
        return _to_commit;
83
    }
84

  
85
    void to_commit(int c)
86
    {
87
        _to_commit = c;
88
    }
89

  
75 90
    /**
76 91
     *  Function to lock the request
77 92
     */
......
87 102
    {
88 103
        pthread_mutex_unlock(&mutex);
89 104
    };
105

  
90 106
private:
91 107
    pthread_mutex_t mutex;
92 108

  
......
113 129
     *  Remaining number of servers that need to replicate this record to commit
114 130
     *  it. Initialized to ( Number_Servers - 1 ) / 2
115 131
     */
116
    int to_commit;
132
    int _to_commit;
117 133

  
118 134
    /**
119 135
     *  Total number of replicas for this entry
120 136
     */
121
    int replicas;
137
    int _replicas;
122 138
};
123 139

  
124 140

  

Also available in: Unified diff