Commit 8310cdee authored by project's avatar project

--no commit message

--no commit message
parent d3a2bf1a
......@@ -64,6 +64,7 @@ router.get('/:id/objects',function (req, res) {
var from_seq = 1;
var limit = 0;
var sizelimit = 10 * 1000 * 1000;
if(query.obj_after){
var o_seq;
......@@ -80,6 +81,10 @@ router.get('/:id/objects',function (req, res) {
limit = Number(query.limit);
}
if(query.sizelimit){
sizelimit = Number(query.sizelimit) * 1000 * 1000;
}
if(query.seq_from){
from_seq = Number(query.seq_from);
}
......@@ -121,9 +126,8 @@ router.get('/:id/objects',function (req, res) {
if(resultIdx>0){res.write(',');}
res.write(dataout);
counter+=dataout.length;
if(counter>1000000){
//res.flush();
counter=0;
if(sizelimit>0 && counter>=sizelimit){
cont=false;
}
if(limit>0 && idx>=from_seq+limit){
cont=false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment