Skip to content
This repository has been archived by the owner. It is now read-only.

fix stream2es memleak #2

Open
wants to merge 1 commit into
base: loggly
from
Open
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

fix stream2es memleak

this prevents *all of a customer's index data* from being held in the
heap at once.
  • Loading branch information
Mike Blume
Mike Blume committed Jan 1, 2014
commit f724a6ec6963346c12256205803d34aac9d7a928
@@ -61,12 +61,9 @@

(defn make-callback [opts handler]
(fn []
(doall
(map handler
(concat
(map make-doc
(es/scan (:source opts)
(doseq [doc (es/scan (:source opts)
(:query opts)
(:scroll-time opts)
(:scroll-size opts)))
[:eof])))))
(:scroll-size opts))]
(handler (make-doc doc)))
(handler :eof)))
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.