whitespace cleanup

This commit is contained in:
Sears Russell 2010-08-19 17:48:39 +00:00
parent e5528ce218
commit 52055aa20f

View file

@ -165,7 +165,6 @@ int stasis_record_read(int xid, Page * p, recordid rid, byte *buf) {
@todo stasis_record_dereference should dispatch via page_impl... @todo stasis_record_dereference should dispatch via page_impl...
*/ */
recordid stasis_record_dereference(int xid, Page * p, recordid rid) { recordid stasis_record_dereference(int xid, Page * p, recordid rid) {
int page_type = p->pageType; int page_type = p->pageType;
if(page_type == ARRAY_LIST_PAGE) { if(page_type == ARRAY_LIST_PAGE) {
rid = stasis_array_list_dereference_recordid(xid, p, rid.slot); rid = stasis_array_list_dereference_recordid(xid, p, rid.slot);
@ -176,13 +175,11 @@ recordid stasis_record_dereference(int xid, Page * p, recordid rid) {
/// -------------- Dispatch functions /// -------------- Dispatch functions
const byte * stasis_record_read_begin(int xid, Page * p, recordid rid) { const byte * stasis_record_read_begin(int xid, Page * p, recordid rid) {
int page_type = p->pageType; int page_type = p->pageType;
assert(page_type); assert(page_type);
return page_impls[page_type].recordRead(xid, p, rid); return page_impls[page_type].recordRead(xid, p, rid);
} }
byte * stasis_record_write_begin(int xid, Page * p, recordid rid) { byte * stasis_record_write_begin(int xid, Page * p, recordid rid) {
int page_type = p->pageType; int page_type = p->pageType;
assert(page_type); assert(page_type);
assert(stasis_record_length_read(xid, p, rid) == stasis_record_type_to_size(rid.size)); assert(stasis_record_length_read(xid, p, rid) == stasis_record_type_to_size(rid.size));