Skip to content
Snippets Groups Projects
Commit 5a772639 authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

vinyl: zap tx_manager_vlsn

This function is not used anywhere since commit a1e005d8
("vinyl: write_iterator merges vlsns subsequnces")
parent fe07ada1
No related branches found
No related tags found
No related merge requests found
......@@ -170,10 +170,6 @@ tx_manager_read_view(struct tx_manager *xm)
rv->vlsn = xm->lsn;
rv->refs = 1;
}
/*
* Add to the tail of the list, so that tx_manager_vlsn()
* works correctly.
*/
rlist_add_tail_entry(&xm->read_views, rv, in_read_views);
return rv;
}
......@@ -193,17 +189,6 @@ tx_manager_destroy_read_view(struct tx_manager *xm,
}
}
int64_t
tx_manager_vlsn(struct tx_manager *xm)
{
if (rlist_empty(&xm->read_views))
return xm->lsn;
struct vy_read_view *oldest = rlist_first_entry(&xm->read_views,
struct vy_read_view,
in_read_views);
return oldest->vlsn;
}
static struct txv *
txv_new(struct vy_tx *tx, struct vy_lsm *lsm, struct tuple *stmt)
{
......
......@@ -262,18 +262,6 @@ tx_manager_new(void);
void
tx_manager_delete(struct tx_manager *xm);
/*
* Determine the lowest possible vlsn, i.e. the level below
* which the history could be compacted.
*
* If there are active read views, it is the first's vlsn.
* If there is no active read view, a read view could be
* created at any moment with vlsn = m->lsn, so m->lsn must
* be chosen.
*/
int64_t
tx_manager_vlsn(struct tx_manager *xm);
/** Initialize a tx object. */
void
vy_tx_create(struct tx_manager *xm, struct vy_tx *tx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment