message: Add test for rollback of merge_row on row containing backlinks.
diff: @@ -12918,4 +12918,34 @@ TEST(LangBindHelper_CopyOnWriteOverflow)
  }
  }
  +
  +TEST(LangBindHelper_RollbackMergeRowsWithBacklinks)
  +{
  + SHARED_GROUP_TEST_PATH(path);
  + const char* key = crypt_key();
  + std::unique_ptr<Replication> hist_w(make_in_realm_history(path));
  + SharedGroup sg_w(*hist_w, SharedGroupOptions(key));
  + Group& g = const_cast<Group&>(sg_w.begin_write());
  +
  + g.add_table("table1");
  + g.get_table(0)->add_column(type_Int, "int_col");
  + g.get_table(0)->add_empty_row(2);
  +
  + g.add_table("table2");
  + g.get_table(1)->add_column_link(type_Link, "link_col", *g.get_table(0));
  + g.get_table(1)->add_empty_row(1);
  + g.get_table(1)->set_link(0, 0, 1);
  +
  + LangBindHelper::commit_and_continue_as_read(sg_w);
  +
  + g.verify();
  + LangBindHelper::promote_to_write(sg_w);
  + g.get_table(0)->merge_rows(0, 1);
  + g.verify();
  + LangBindHelper::rollback_and_continue_as_read(sg_w);
  +
  + g.verify();
  +}
  +
  +
  #endif
  