-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,19 @@ class Replication::TransactLogApplier { | |
return false; | ||
} | ||
|
||
bool set_int_unique(size_t col_ndx, size_t row_ndx, int_fast64_t value) | ||
{ | ||
if (REALM_LIKELY(check_set_cell(col_ndx, row_ndx))) { | ||
#ifdef REALM_DEBUG | ||
if (m_log) | ||
*m_log << "table->set_int_unique("<<col_ndx<<", "<<row_ndx<<", "<<value<<")\n"; | ||
This comment has been minimized.
Sorry, something went wrong. |
||
#endif | ||
m_table->set_int_unique(col_ndx, row_ndx, value); // Throws | ||
return true; | ||
} | ||
return false; | ||
} | ||
|
||
bool set_bool(size_t col_ndx, size_t row_ndx, bool value) | ||
{ | ||
if (REALM_LIKELY(check_set_cell(col_ndx, row_ndx))) { | ||
|
@@ -110,6 +123,19 @@ class Replication::TransactLogApplier { | |
return false; | ||
} | ||
|
||
bool set_string_unique(size_t col_ndx, size_t row_ndx, StringData value) | ||
{ | ||
if (REALM_LIKELY(check_set_cell(col_ndx, row_ndx))) { | ||
#ifdef REALM_DEBUG | ||
if (m_log) | ||
*m_log << "table->set_string_unique("<<col_ndx<<", "<<row_ndx<<", "<<value<<")\n"; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
simonask
Author
Contributor
|
||
#endif | ||
m_table->set_string_unique(col_ndx, row_ndx, value); // Throws | ||
return true; | ||
} | ||
return false; | ||
} | ||
|
||
bool set_binary(size_t col_ndx, size_t row_ndx, BinaryData value) | ||
{ | ||
if (REALM_LIKELY(check_set_cell(col_ndx, row_ndx))) { | ||
|
Spacing around stream operators.